bacula: fix build on aarch64-darwin
This commit is contained in:
parent
3db0fa106d
commit
1ce5bfc540
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue