~ruther/guix-local

86cf4c039631cdf15c4c428bf4ffe52d6cbd7d4c — Mathieu Othacehe 5 years ago 11a7bfb
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>
1 files changed, 6 insertions(+), 0 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +6 -0
@@ 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")))