From bf960aa6bc3aba0472af01a038b2552dc04bd140 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 13 May 2023 04:20:00 +0000 Subject: [PATCH] postgresql11Packages.pg_auto_failover: fix build on Linux ZHF: #230712 --- pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix b/pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix index 2a310660d50c..6af250790d76 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline, libkrb5 }: +{ lib, stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline, libkrb5, libxcrypt }: stdenv.mkDerivation rec { pname = "pg_auto_failover"; @@ -11,7 +11,8 @@ stdenv.mkDerivation rec { sha256 = "sha256-CLtLOzKRB9p6+SytMvWCYo7m7s/d+clAGOa2sWi6uZ0="; }; - buildInputs = [ postgresql openssl zlib readline libkrb5 ]; + buildInputs = [ postgresql openssl zlib readline libkrb5 ] + ++ lib.optionals (stdenv.isLinux && lib.versionOlder postgresql.version "13") [ libxcrypt ]; installPhase = '' install -D -t $out/bin src/bin/pg_autoctl/pg_autoctl