From 373bdced7fa570d83695b83a5db939a180d290b9 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 10 Jul 2018 00:02:06 +0200 Subject: [PATCH] =?UTF-8?q?gnome2.GConf:=202.32.4=20=E2=86=92=203.2.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update and clean up the expression. For example, GTK was only used for removed utility and examples. --- .../gnome-2/platform/GConf/default.nix | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/pkgs/desktops/gnome-2/platform/GConf/default.nix b/pkgs/desktops/gnome-2/platform/GConf/default.nix index 778a1cc920f..afba6e15ebd 100644 --- a/pkgs/desktops/gnome-2/platform/GConf/default.nix +++ b/pkgs/desktops/gnome-2/platform/GConf/default.nix @@ -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; + }; }