Skip to content

Commit

Permalink
libpng12: fix clang-19 build (#362685)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Dec 13, 2024
2 parents f2abf25 + 189fe2b commit 49472e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/libpng/12.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "1izw9ybm27llk8531w6h4jp4rk2rxy2s9vil16nwik5dp0amyqxl";
};

postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace pngconf.h --replace-fail '<fp.h>' '<math.h>'
'';

outputs = [ "out" "dev" "man" ];

propagatedBuildInputs = [ zlib ];
Expand Down

0 comments on commit 49472e2

Please sign in to comment.