about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2024-03-18 07:09:33 +0100
committerVladimír Čunát <v@cunat.cz>2024-03-18 07:09:33 +0100
commitae26228100aa5490671da85f4db2ab7938df8fc8 (patch)
treeefc480e9e898f4453492f6b19e9c24aca51c0c8b
parent819a14ad058cd71505adf631cc3038dd1a664289 (diff)
downloadnixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.tar
nixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.tar.gz
nixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.tar.bz2
nixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.tar.lz
nixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.tar.xz
nixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.tar.zst
nixlib-ae26228100aa5490671da85f4db2ab7938df8fc8.zip
pngcrush: patch build after libpng update
-rw-r--r--pkgs/tools/graphics/pngcrush/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/pngcrush/default.nix b/pkgs/tools/graphics/pngcrush/default.nix
index 8ce9965eae25..2863881b9302 100644
--- a/pkgs/tools/graphics/pngcrush/default.nix
+++ b/pkgs/tools/graphics/pngcrush/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, libpng }:
+{ lib, stdenv, fetchurl, fetchpatch2, libpng }:
 
 stdenv.mkDerivation rec {
   pname = "pngcrush";
@@ -9,6 +9,13 @@ stdenv.mkDerivation rec {
     sha256 = "0l43c59d6v9l0g07z3q3ywhb8xb3vz74llv3mna0izk9bj6aqkiv";
   };
 
+  patches = [
+    (fetchpatch2 {
+      url = "https://salsa.debian.org/debian/pngcrush/-/raw/b4856b56fbc28252103cc14d156baddd564ca880/debian/patches/ignore_PNG_IGNORE_ADLER32.patch";
+      hash = "sha256-pFON/NUJiXMe9GETptgNltWa0izlby6P/fLsG1abz3g=";
+    })
+  ];
+
   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" ];      # gcc and/or clang compat
 
   configurePhase = ''