aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/databases.scm16
1 files changed, 15 insertions, 1 deletions
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 @@ as a drop-in replacement of MySQL.")
(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)))