gnu: postgresql: Enable contributed extensions.
* gnu/packages/databases.scm (postgresql)[arguments]: Add "build-contrib", "install-contrib" phases. Add configure-flags. [inputs]: Add libuuid.
This commit is contained in:
parent
c84384cb7c
commit
b7aa3f5d2e
1 changed files with 10 additions and 2 deletions
|
@ -459,7 +459,8 @@ (define-public postgresql
|
|||
"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 @@ (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 _
|
||||
(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")
|
||||
|
|
Loading…
Reference in a new issue