Skip to content

Commit

Permalink
bacula: fix build on aarch64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Nov 3, 2022
1 parent 3db0fa1 commit 1ce5bfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/tools/backup/bacula/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ce5bfc

Please sign in to comment.