summary refs log tree commit diff
path: root/pkgs/development/libraries/libgsf
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-07-11 20:05:36 +0200
committerLluís Batlle i Rossell <viric@viric.name>2012-07-11 20:05:36 +0200
commitdb46c668b80ab9d9a80a22ca3b2d811f233bc971 (patch)
tree448a1d8f66785a4ebdac222ba3283e9422c88da0 /pkgs/development/libraries/libgsf
parent945a3480d493eb270e719273d499f5091c8a126d (diff)
downloadnixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.tar
nixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.tar.gz
nixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.tar.bz2
nixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.tar.lz
nixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.tar.xz
nixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.tar.zst
nixpkgs-db46c668b80ab9d9a80a22ca3b2d811f233bc971.zip
libgsf and libextractor: allow build without gtk/gnome
I leave them enabled by default though; I don't really know how much it helps,
having them built with gtk or gnome support.

I head towards building gnunet without gtk dependencies.
Diffstat (limited to 'pkgs/development/libraries/libgsf')
-rw-r--r--pkgs/development/libraries/libgsf/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libgsf/default.nix b/pkgs/development/libraries/libgsf/default.nix
index 9d36bc3d5f2..01891ccf360 100644
--- a/pkgs/development/libraries/libgsf/default.nix
+++ b/pkgs/development/libraries/libgsf/default.nix
@@ -1,7 +1,10 @@
 { fetchurl, stdenv, perl, perlXMLParser, pkgconfig, libxml2
-, glib, gettext, intltool, bzip2, gdk_pixbuf
-, gnome_vfs, libbonobo, python }:
+, gettext, intltool, bzip2, python
+, gnomeSupport ? true, glib ? null, gdk_pixbuf ? null
+, gnome_vfs ? null, libbonobo ? null }:
 
+assert gnomeSupport -> gdk_pixbuf != null && gnome_vfs != null && libbonobo != null
+  && glib != null;
 
 stdenv.mkDerivation rec {
   name = "libgsf-1.14.22";
@@ -13,9 +16,11 @@ stdenv.mkDerivation rec {
 
   buildNativeInputs = [ intltool pkgconfig ];
   buildInputs =
-    [ perl perlXMLParser gettext bzip2 gnome_vfs python gdk_pixbuf ];
+    [ perl perlXMLParser gettext bzip2 gnome_vfs python ]
+    ++ stdenv.lib.optionals gnomeSupport [ gnome_vfs gdk_pixbuf python ];
 
-  propagatedBuildInputs = [ glib libxml2 libbonobo ];
+  propagatedBuildInputs = [ libxml2 ]
+    ++ stdenv.lib.optionals gnomeSupport [ libbonobo glib ];
 
   doCheck = true;