aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2017-01-27 22:48:50 +0000
committerChristopher Baines <mail@cbaines.net>2017-01-27 22:48:50 +0000
commite583c404ff7f5ec3a73e8c60c958aea9d3e39eef (patch)
treea3ad4207b49666d57f6c729cf383b85d5224f9d0
parent88dbf70f294dc965e1b1aa916ee65dbb07eabf1c (diff)
downloadguix-e583c404ff7f5ec3a73e8c60c958aea9d3e39eef.tar
guix-e583c404ff7f5ec3a73e8c60c958aea9d3e39eef.tar.gz
Auto commitpgcrypto
-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)))