bacula: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-11-03 12:23:41 +01:00
parent 3db0fa106d
commit 1ce5bfc540

View file

@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-AZWgi81PV4rkqc4Nkff4ZzHGNNVrgQU0ci1yGyqe7Lc=";
};
# libtool.m4 only matches macOS 10.*
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
substituteInPlace configure \
--replace "10.*)" "*)"
'';
buildInputs = [ postgresql sqlite zlib ncurses openssl readline ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreFoundation