2009-11-03 15:26:14 -08:00
|
|
|
{ stdenv, fetchurl, pkgconfig, dbus_glib, glib, ORBit2, libxml2
|
2015-04-30 13:20:17 -07:00
|
|
|
, polkit, intltool, dbus_libs, gtk ? null, withGtk ? false }:
|
|
|
|
|
|
|
|
assert withGtk -> (gtk != null);
|
2009-09-29 22:27:34 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-07-26 04:43:49 -07:00
|
|
|
name = "gconf-2.32.4";
|
2012-01-05 16:55:14 -08:00
|
|
|
|
2009-09-29 22:27:34 -07:00
|
|
|
src = fetchurl {
|
2012-03-08 14:45:22 -08:00
|
|
|
url = mirror://gnome/sources/GConf/2.32/GConf-2.32.4.tar.xz;
|
|
|
|
sha256 = "09ch709cb9fniwc4221xgkq0jf0x0lxs814sqig8p2dcll0llvzk";
|
2009-09-29 22:27:34 -07:00
|
|
|
};
|
2009-09-29 23:50:32 -07:00
|
|
|
|
2015-07-26 04:43:49 -07:00
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
2015-04-30 13:20:17 -07:00
|
|
|
buildInputs = [ ORBit2 dbus_libs dbus_glib libxml2 ]
|
2013-07-03 07:21:46 -07:00
|
|
|
# polkit requires pam, which requires shadow.h, which is not available on
|
|
|
|
# darwin
|
2015-04-30 13:20:17 -07:00
|
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) polkit
|
|
|
|
++ stdenv.lib.optional withGtk gtk;
|
2013-07-03 07:21:46 -07:00
|
|
|
|
2009-11-03 15:26:14 -08:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2012-03-08 14:45:25 -08:00
|
|
|
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2012-03-08 14:45:25 -08:00
|
|
|
|
2015-04-30 13:20:17 -07:00
|
|
|
configureFlags = stdenv.lib.optional withGtk "--with-gtk=2.0"
|
2013-07-03 07:21:46 -07:00
|
|
|
# fixes the "libgconfbackend-oldxml.so is not portable" error on darwin
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-static" ];
|
2009-09-29 22:27:34 -07:00
|
|
|
}
|