freeimage: fix build with glibc 2.27

This commit is contained in:
Orivej Desh 2018-06-03 20:37:40 +00:00
parent 76f6dc1772
commit 214b35d115

View File

@ -19,6 +19,10 @@ stdenv.mkDerivation {
url = patchURL + "/Fix-CVE-2016-5684.patch";
sha256 = "14ffgqbnwg28r6sjvm3z89zbnnm9ghbc81hdhrzxlyk3vwvd6cw3";
})
(fetchurl {
url = https://raw.githubusercontent.com/buildroot/buildroot/2018.05/package/libfreeimage/0005-Manage-powf64-with-glibc.patch;
sha256 = "1lis479ad5cfkhqm044nk4x97wfwm3hry3bvij1w5xkndnlfppc2";
})
];
buildInputs = [ unzip ] ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
@ -57,6 +61,8 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
enableParallelBuilding = true;
meta = {
description = "Open Source library for accessing popular graphics image file formats";
homepage = http://freeimage.sourceforge.net/;