diff --git a/pkgs/development/libraries/libpng/12.nix b/pkgs/development/libraries/libpng/12.nix index 9792447bcc888..46fe96aa0777a 100644 --- a/pkgs/development/libraries/libpng/12.nix +++ b/pkgs/development/libraries/libpng/12.nix @@ -13,6 +13,10 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "1izw9ybm27llk8531w6h4jp4rk2rxy2s9vil16nwik5dp0amyqxl"; }; + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace pngconf.h --replace-fail '' '' + ''; + outputs = [ "out" "dev" "man" ]; propagatedBuildInputs = [ zlib ];