From 5a426c94a62b100390e10daf639a489aaf232fb5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 12 Dec 2012 04:16:47 +0100 Subject: [PATCH] gdk-pixbuf: Allow to build with introspection. Signed-off-by: aszlig --- pkgs/development/libraries/gdk-pixbuf/2.26.x.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gdk-pixbuf/2.26.x.nix b/pkgs/development/libraries/gdk-pixbuf/2.26.x.nix index 07e66df33b5..c2336a00b5f 100644 --- a/pkgs/development/libraries/gdk-pixbuf/2.26.x.nix +++ b/pkgs/development/libraries/gdk-pixbuf/2.26.x.nix @@ -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 { name = "gdk-pixbuf-2.26.1"; @@ -9,7 +13,8 @@ stdenv.mkDerivation rec { }; # !!! We might want to factor out the gdk-pixbuf-xlib subpackage. - buildInputs = [ libX11 ]; + buildInputs = [ libX11 ] + ++ stdenv.lib.optional enableIntrospection gobjectIntrospection; buildNativeInputs = [ pkgconfig ];