From e583c404ff7f5ec3a73e8c60c958aea9d3e39eef Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 27 Jan 2017 22:48:50 +0000 Subject: Auto commit --- gnu/packages/databases.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index e8be179801..c4c09b2a53 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -411,7 +411,21 @@ (define-public postgresql (substitute* '("src/bin/pg_ctl/pg_ctl.c" "src/bin/psql/command.c") (("/bin/sh") (which "sh"))) - #t))))) + #t)) + (add-after 'build 'build-contrib + (lambda* (#:key (make-flags '()) (parallel-build? #t) + #:allow-other-keys) + (with-directory-excursion "contrib/pgcrypto" + (and + (zero? + (apply + system* + "make" + `(,@(if parallel-build? + `("-j" ,(number->string (parallel-job-count))) + '()) + ,@make-flags))) + (zero? (apply system* "make" "install" make-flags))))))))) (inputs `(("readline" ,readline) ("zlib" ,zlib))) -- cgit v1.2.3