gdk-pixbuf: Allow to build with introspection.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2012-12-12 04:16:47 +01:00
parent 99cf8f7cf2
commit 5a426c94a6
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,4 +1,8 @@
{ stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11, xz, jasper }: { stdenv, fetchurl, pkgconfig, glib, libtiff, libjpeg, libpng, libX11, xz, jasper
, enableIntrospection ? false, gobjectIntrospection ? null
}:
assert enableIntrospection -> gobjectIntrospection != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gdk-pixbuf-2.26.1"; name = "gdk-pixbuf-2.26.1";
@ -9,7 +13,8 @@ stdenv.mkDerivation rec {
}; };
# !!! We might want to factor out the gdk-pixbuf-xlib subpackage. # !!! We might want to factor out the gdk-pixbuf-xlib subpackage.
buildInputs = [ libX11 ]; buildInputs = [ libX11 ]
++ stdenv.lib.optional enableIntrospection gobjectIntrospection;
buildNativeInputs = [ pkgconfig ]; buildNativeInputs = [ pkgconfig ];