Merge pull request #199269 from wegank/bacula-aarch64-darwin

bacula: fix build on aarch64-darwin
This commit is contained in:
Mario Rodas 2022-11-06 18:41:41 -05:00 committed by GitHub
commit 8f9f725f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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