bacula: fix build on aarch64-darwin

+6
+6
pkgs/tools/backup/bacula/default.nix
··· 11 sha256 = "sha256-AZWgi81PV4rkqc4Nkff4ZzHGNNVrgQU0ci1yGyqe7Lc="; 12 }; 13 14 buildInputs = [ postgresql sqlite zlib ncurses openssl readline ] 15 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 16 CoreFoundation
··· 11 sha256 = "sha256-AZWgi81PV4rkqc4Nkff4ZzHGNNVrgQU0ci1yGyqe7Lc="; 12 }; 13 14 + # libtool.m4 only matches macOS 10.* 15 + postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' 16 + substituteInPlace configure \ 17 + --replace "10.*)" "*)" 18 + ''; 19 + 20 buildInputs = [ postgresql sqlite zlib ncurses openssl readline ] 21 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 22 CoreFoundation