2019-07-20 20:42:31 +00:00
|
|
|
{stdenv, fetchurl, fetchpatch, libX11, libXext, xorgproto, libjpeg, libungif, libtiff, libpng}:
|
2006-08-13 09:46:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "imlib-1.9.15";
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://tarballs.nixos.org/imlib-1.9.15.tar.gz";
|
2014-10-12 14:13:21 +00:00
|
|
|
sha256 = "0ggjxyvgp4pxc0b88v40xj9daz90518ydnycw7qax011gxpr12d3";
|
2006-08-13 09:46:54 +00:00
|
|
|
};
|
|
|
|
|
2019-07-20 20:42:31 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2007-3568.patch";
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/imlib/files/imlib-1.9.15-bpp16-CVE-2007-3568.patch";
|
2019-07-20 20:42:31 +00:00
|
|
|
sha256 = "0lxfibi094gki39sq1w4p0hcx25xlk0875agbhjkjngzx862wvbg";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-shm"
|
|
|
|
"--x-includes=${libX11.dev}/include"
|
|
|
|
"--x-libraries=${libX11.out}/lib"
|
|
|
|
];
|
2006-08-13 09:46:54 +00:00
|
|
|
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [libjpeg libXext libX11 xorgproto libtiff libungif libpng];
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2018-11-01 19:47:54 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An image loading and rendering library for X11";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2006-08-13 09:46:54 +00:00
|
|
|
}
|