Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

postgresql12Packages.repmgr: fix build

Closes: #248935

authored by

netali and committed by
Austin Seipp
53bbb203 c8228427

+3 -1
+3 -1
pkgs/servers/sql/postgresql/ext/repmgr.nix
··· 8 8 , flex 9 9 , curl 10 10 , json_c 11 + , libxcrypt 11 12 }: 12 13 13 14 stdenv.mkDerivation rec { ··· 23 24 24 25 nativeBuildInputs = [ flex ]; 25 26 26 - buildInputs = [ postgresql openssl zlib readline curl json_c ]; 27 + buildInputs = [ postgresql openssl zlib readline curl json_c ] 28 + ++ lib.optionals (stdenv.isLinux && lib.versionOlder postgresql.version "13") [ libxcrypt ]; 27 29 28 30 installPhase = '' 29 31 mkdir -p $out/{bin,lib,share/postgresql/extension}