mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: postgresql: Set default socket directory.
* gnu/packages/databases.scm (postgresql)[arguments]: Add 'set-socket-dir phase. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
11a7bfbc46
commit
86cf4c0396
1 changed files with 6 additions and 0 deletions
|
@ -1217,6 +1217,12 @@ developed in C/C++ to MariaDB and MySQL databases.")
|
|||
"src/bin/psql/command.c")
|
||||
(("/bin/sh") (which "sh")))
|
||||
#t))
|
||||
(add-before 'configure 'set-socket-dir
|
||||
(lambda _
|
||||
(substitute* '("src/include/pg_config_manual.h")
|
||||
(("DEFAULT_PGSOCKET_DIR[^\n]*")
|
||||
"DEFAULT_PGSOCKET_DIR \"/var/run/postgresql\""))
|
||||
#t))
|
||||
(add-after 'build 'build-contrib
|
||||
(lambda _
|
||||
(invoke "make" "-C" "contrib")))
|
||||
|
|
Loading…
Reference in a new issue