nixpkgs/pkgs/desktops/gnome-2/platform/GConf/default.nix
Jason "Don" O'Conal a42133a102 gnome.GConf: fix build on darwin
* disable polkit
* add --enable-static to configureFlags
2013-07-04 00:21:46 +10:00

24 lines
783 B
Nix

{ stdenv, fetchurl, pkgconfig, dbus_glib, glib, ORBit2, libxml2
, polkit, intltool, dbus_libs, gtk }:
stdenv.mkDerivation {
name = "GConf-2.32.4";
src = fetchurl {
url = mirror://gnome/sources/GConf/2.32/GConf-2.32.4.tar.xz;
sha256 = "09ch709cb9fniwc4221xgkq0jf0x0lxs814sqig8p2dcll0llvzk";
};
buildInputs = [ ORBit2 dbus_libs dbus_glib libxml2 gtk ]
# polkit requires pam, which requires shadow.h, which is not available on
# darwin
++ stdenv.lib.optional (!stdenv.isDarwin) polkit;
propagatedBuildInputs = [ glib ];
nativeBuildInputs = [ pkgconfig intltool ];
configureFlags = [ "--with-gtk=2.0" ]
# fixes the "libgconfbackend-oldxml.so is not portable" error on darwin
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-static" ];
}