mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00
gnome2.GConf: 2.32.4 → 3.2.6
Update and clean up the expression. For example, GTK was only used for removed utility and examples.
This commit is contained in:
parent
301559c1ea
commit
373bdced7f
@ -1,29 +1,33 @@
|
||||
{ stdenv, fetchurl, pkgconfig, dbus-glib, glib, ORBit2, libxml2
|
||||
, polkit, intltool, dbus_libs, gtk2 ? null, withGtk ? false }:
|
||||
, polkit, intltool }:
|
||||
|
||||
assert withGtk -> (gtk2 != null);
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gconf-2.32.4";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gconf-${version}";
|
||||
version = "3.2.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://gnome/sources/GConf/2.32/GConf-2.32.4.tar.xz;
|
||||
sha256 = "09ch709cb9fniwc4221xgkq0jf0x0lxs814sqig8p2dcll0llvzk";
|
||||
url = "mirror://gnome/sources/GConf/${stdenv.lib.versions.majorMinor version}/GConf-${version}.tar.xz";
|
||||
sha256 = "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
buildInputs = [ ORBit2 dbus_libs dbus-glib libxml2 ]
|
||||
buildInputs = [ ORBit2 libxml2 ]
|
||||
# polkit requires pam, which requires shadow.h, which is not available on
|
||||
# darwin
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) polkit
|
||||
++ stdenv.lib.optional withGtk gtk2;
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) polkit;
|
||||
|
||||
propagatedBuildInputs = [ glib ];
|
||||
propagatedBuildInputs = [ glib dbus-glib ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig intltool ];
|
||||
|
||||
configureFlags = stdenv.lib.optional withGtk "--with-gtk=2.0"
|
||||
configureFlags =
|
||||
# fixes the "libgconfbackend-oldxml.so is not portable" error on darwin
|
||||
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-static" ];
|
||||
stdenv.lib.optional stdenv.isDarwin [ "--enable-static" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://projects.gnome.org/gconf/;
|
||||
description = "Deprecated system for storing application preferences";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user