postgresql12Packages.repmgr: fix build

Closes: #248935
This commit is contained in:
netali 2023-08-29 21:41:23 +02:00 committed by Austin Seipp
parent c82284279d
commit 53bbb203e0

View file

@ -8,6 +8,7 @@
, flex
, curl
, json_c
, libxcrypt
}:
stdenv.mkDerivation rec {
@ -23,7 +24,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ flex ];
buildInputs = [ postgresql openssl zlib readline curl json_c ];
buildInputs = [ postgresql openssl zlib readline curl json_c ]
++ lib.optionals (stdenv.isLinux && lib.versionOlder postgresql.version "13") [ libxcrypt ];
installPhase = ''
mkdir -p $out/{bin,lib,share/postgresql/extension}