diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2012-07-11 20:05:36 +0200 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2012-07-11 20:05:36 +0200 |
commit | db46c668b80ab9d9a80a22ca3b2d811f233bc971 (patch) | |
tree | 448a1d8f66785a4ebdac222ba3283e9422c88da0 /pkgs/development/libraries/libextractor | |
parent | 945a3480d493eb270e719273d499f5091c8a126d (diff) |
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/libextractor')
-rw-r--r-- | pkgs/development/libraries/libextractor/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libextractor/default.nix b/pkgs/development/libraries/libextractor/default.nix index b532f3283d481..0ea9810e8ae44 100644 --- a/pkgs/development/libraries/libextractor/default.nix +++ b/pkgs/development/libraries/libextractor/default.nix @@ -1,5 +1,8 @@ { fetchurl, stdenv, libtool, gettext, zlib, bzip2, flac, libvorbis, libmpeg2 -, ffmpeg, exiv2, libgsf, rpm, pkgconfig, glib, gtk }: +, ffmpeg, exiv2, libgsf, rpm, pkgconfig +, gtkSupport ? true, glib ? null, gtk ? null}: + +assert gtkSupport -> glib != null && gtk != null; stdenv.mkDerivation rec { name = "libextractor-0.6.2"; @@ -18,8 +21,8 @@ stdenv.mkDerivation rec { buildInputs = [ libtool gettext zlib bzip2 flac libvorbis libmpeg2 exiv2 ffmpeg libgsf rpm - pkgconfig glib gtk - ]; + pkgconfig + ] ++ stdenv.lib.optionals gtkSupport [ glib gtk ]; configureFlags = "--disable-ltdl-install " + "--with-ltdl-include=${libtool}/include " |