diff options
author | Audrey Dutcher <audrey@rhelmot.io> | 2024-06-17 01:30:34 -0700 |
---|---|---|
committer | Audrey Dutcher <audrey@rhelmot.io> | 2024-06-17 01:30:34 -0700 |
commit | e05182c4e83b6e4d3a6f5d696ca4f4dd1bfeeb81 (patch) | |
tree | 2826f20ae156a0b57046d9d8e7c0b21d02a44ade /pkgs/development/libraries | |
parent | bd8d034e6500e41e9cfb5efe0a10d6ab7a9e6ea1 (diff) |
libpng: force-declare feenableexcept on FreeBSD
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/libpng/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libpng/default.nix b/pkgs/development/libraries/libpng/default.nix index 4a8c52ae279dd..11e3fb31604f7 100644 --- a/pkgs/development/libraries/libpng/default.nix +++ b/pkgs/development/libraries/libpng/default.nix @@ -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"; |