Merge #318172: libpng: fix build on FreeBSD

This commit is contained in:
Vladimír Čunát
2024-06-17 10:39:17 +02:00
@@ -20,7 +20,11 @@ in stdenv.mkDerivation (finalAttrs: {
url = "mirror://sourceforge/libpng/libpng-${finalAttrs.version}.tar.xz";
hash = "sha256-alygZSOSotfJ2yrltAIQhDwLvAgcvUEIJasAzFnxSmw=";
};
postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1";
postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1"
+ lib.optionalString stdenv.isFreeBSD ''
sed -i 1i'int feenableexcept(int __mask);' contrib/libtests/pngvalid.c
'';
outputs = [ "out" "dev" "man" ];
outputBin = "dev";