aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-06-05 18:18:06 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2017-06-15 09:44:17 +0200
commitb7aa3f5d2e04800b60ece895c88dd753d2c3dfcc (patch)
tree2684c5b116ac0c6194dbae02d62e66eb9403d0f4 /gnu/packages
parentc84384cb7cef061f19d0e5aa1b2c543d048b95da (diff)
downloadguix-b7aa3f5d2e04800b60ece895c88dd753d2c3dfcc.tar
guix-b7aa3f5d2e04800b60ece895c88dd753d2c3dfcc.tar.gz
gnu: postgresql: Enable contributed extensions.
* gnu/packages/databases.scm (postgresql)[arguments]: Add "build-contrib", "install-contrib" phases. Add configure-flags. [inputs]: Add libuuid.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/databases.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index c46e917b89..963d209a44 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -459,7 +459,8 @@ as a drop-in replacement of MySQL.")
"1imrjp4vfslxj5rrvphcrrk21zv8kqw3gacmwradixh1d5rv6i8n"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
+ `(#:configure-flags '("--with-uuid=e2fs")
+ #:phases
(modify-phases %standard-phases
(add-before 'configure 'patch-/bin/sh
(lambda _
@@ -467,9 +468,16 @@ 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 _
+ (zero? (system* "make" "-C" "contrib"))))
+ (add-after 'install 'install-contrib
+ (lambda _
+ (zero? (system* "make" "-C" "contrib" "install")))))))
(inputs
`(("readline" ,readline)
+ ("libuuid" ,util-linux)
("zlib" ,zlib)))
(home-page "https://www.postgresql.org/")
(synopsis "Powerful object-relational database system")