about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-11-06 18:41:41 -0500
committerGitHub <noreply@github.com>2022-11-06 18:41:41 -0500
commit8f9f725f1878772ec81c1d53af52db7e75432531 (patch)
treee11b70b1d3f419325f6d7778bcdd9d924508497e
parent967cc70757342b50c6b5bdd253477fdd72ec6eaf (diff)
parent1ce5bfc540427508f0131ac514c0e8f24d347019 (diff)
Merge pull request #199269 from wegank/bacula-aarch64-darwin
bacula: fix build on aarch64-darwin
-rw-r--r--pkgs/tools/backup/bacula/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/backup/bacula/default.nix b/pkgs/tools/backup/bacula/default.nix
index 35c5a36a8c9f1..1bd9cbd68555e 100644
--- a/pkgs/tools/backup/bacula/default.nix
+++ b/pkgs/tools/backup/bacula/default.nix
@@ -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