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