mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
de96fb7cc7
The fix involves using imlib2 built with giflib instead of a libungif. Initially I split imlib2 into two but other distros seem to build imlib2 with giflib already and everything still builds with giflib version so I migrated imlib2 to giflib all together. Closes #4622
28 lines
693 B
Nix
28 lines
693 B
Nix
{ stdenv, fetchurl, x11, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "imlib2-1.4.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/enlightenment/${name}.tar.bz2";
|
|
sha256 = "0x1j0ylpclkp8cfpwfpkjywqz124bqskyxbw8pvwzkv2gmrbwldg";
|
|
};
|
|
|
|
buildInputs = [ x11 libjpeg libtiff giflib libpng bzip2 ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
# From
|
|
# https://github.com/PhantomX/slackbuilds/blob/master/imlib2/patches/imlib2-giflib51.patch
|
|
patches = [ ./giflib51.patch ];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace imlib2-config.in \
|
|
--replace "@my_libs@" ""
|
|
'';
|
|
|
|
meta = {
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|