about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz2024-11-12 14:07:08 -0800
committerRobert Schütz2024-11-12 14:36:04 -0800
commitf6e74a657bfbd0d4502b9667920175e59927b7f1 (patch)
tree057985287da05dcf619b08bdbcba24ed9e48faa8
parent84cfb3e06e57976bf36f54b224b4530615ef7ff6 (diff)
imagemagick: fix build on Darwin backport-354898-to-release-24.05
(cherry picked from commit 4aa45b36fe22dd8a3fdccb97a42ffe50f47c56c8)
-rw-r--r--pkgs/applications/graphics/ImageMagick/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix
index 96d9321b572d..98929155a7bc 100644
--- a/pkgs/applications/graphics/ImageMagick/default.nix
+++ b/pkgs/applications/graphics/ImageMagick/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch2
 , pkg-config
 , libtool
 , bzip2Support ? true, bzip2
@@ -60,6 +61,13 @@ stdenv.mkDerivation (finalAttrs: {
     hash = "sha256-NrTIx1OvwPIeVlA39hGkXZ2Atk4FCsU3/55SZeSc40E=";
   };
 
+  patches = [
+    (fetchpatch2 {
+      url = "https://github.com/ImageMagick/ImageMagick/commit/bf5650f0dd41b500102a129d6867cb568f4edee4.patch";
+      hash = "sha256-nxvSTyNZ35DqjR41nM5uidWwRFWzd1e/LFE0n3fpbb8=";
+    })
+  ];
+
   outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
   outputMan = "out"; # it's tiny