From 53bbb203e013e8fbbcddd9f205e73674475f129a Mon Sep 17 00:00:00 2001 From: netali Date: Tue, 29 Aug 2023 21:41:23 +0200 Subject: [PATCH] postgresql12Packages.repmgr: fix build Closes: #248935 --- pkgs/servers/sql/postgresql/ext/repmgr.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/ext/repmgr.nix b/pkgs/servers/sql/postgresql/ext/repmgr.nix index 79dd4c1bdd21..61e7ee9fc965 100644 --- a/pkgs/servers/sql/postgresql/ext/repmgr.nix +++ b/pkgs/servers/sql/postgresql/ext/repmgr.nix @@ -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}