at v192 40 lines 1.2 kB view raw
1{ stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11 2, jasper, libintlOrEmpty, gobjectIntrospection }: 3 4let 5 ver_maj = "2.31"; 6 ver_min = "6"; 7in 8stdenv.mkDerivation rec { 9 name = "gdk-pixbuf-${ver_maj}.${ver_min}"; 10 11 src = fetchurl { 12 url = "mirror://gnome/sources/gdk-pixbuf/${ver_maj}/${name}.tar.xz"; 13 sha256 = "062x2gqd7p6yxhxlib1ha4l3gk9ihcj080hrwwv9vmlmybb064hi"; 14 }; 15 16 setupHook = ./setup-hook.sh; 17 18 # !!! We might want to factor out the gdk-pixbuf-xlib subpackage. 19 buildInputs = [ libX11 libintlOrEmpty ]; 20 21 nativeBuildInputs = [ pkgconfig gobjectIntrospection ]; 22 23 propagatedBuildInputs = [ glib libtiff libjpeg libpng jasper ]; 24 25 configureFlags = "--with-libjasper --with-x11" 26 + stdenv.lib.optionalString (gobjectIntrospection != null) " --enable-introspection=yes" 27 ; 28 29 # The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB). 30 doCheck = false; 31 32 postInstall = "rm -rf $out/share/gtk-doc"; 33 34 meta = { 35 description = "A library for image loading and manipulation"; 36 homepage = http://library.gnome.org/devel/gdk-pixbuf/; 37 maintainers = [ stdenv.lib.maintainers.eelco ]; 38 platforms = stdenv.lib.platforms.unix; 39 }; 40}