postgresql11Packages.pg_auto_failover: fix build on Linux

ZHF: #230712

+3 -2
+3 -2
pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix
··· 1 - { lib, stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline, libkrb5 }: 2 3 stdenv.mkDerivation rec { 4 pname = "pg_auto_failover"; ··· 11 sha256 = "sha256-CLtLOzKRB9p6+SytMvWCYo7m7s/d+clAGOa2sWi6uZ0="; 12 }; 13 14 - buildInputs = [ postgresql openssl zlib readline libkrb5 ]; 15 16 installPhase = '' 17 install -D -t $out/bin src/bin/pg_autoctl/pg_autoctl
··· 1 + { lib, stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline, libkrb5, libxcrypt }: 2 3 stdenv.mkDerivation rec { 4 pname = "pg_auto_failover"; ··· 11 sha256 = "sha256-CLtLOzKRB9p6+SytMvWCYo7m7s/d+clAGOa2sWi6uZ0="; 12 }; 13 14 + buildInputs = [ postgresql openssl zlib readline libkrb5 ] 15 + ++ lib.optionals (stdenv.isLinux && lib.versionOlder postgresql.version "13") [ libxcrypt ]; 16 17 installPhase = '' 18 install -D -t $out/bin src/bin/pg_autoctl/pg_autoctl