From e227c2c46c4aad25f1fbdb015abee3d535b39f43 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 15 Mar 2018 05:39:43 +0100 Subject: [PATCH] gnome3.gnome-power-manager: clean up --- .../apps/gnome-power-manager/default.nix | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix b/pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix index a295ef456df4..70ed4403f100 100644 --- a/pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix +++ b/pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix @@ -1,5 +1,5 @@ { stdenv -, intltool +, gettext , fetchurl , pkgconfig , gtk3 @@ -11,27 +11,30 @@ , wrapGAppsHook , gnome3 }: -stdenv.mkDerivation rec { - name = "gnome-power-manager-${version}"; +let + pname = "gnome-power-manager"; version = "3.26.0"; +in stdenv.mkDerivation rec { + name = "${pname}-${version}"; src = fetchurl { - url = "mirror://gnome/sources/gnome-power-manager/${gnome3.versionBranch version}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; sha256 = "20aee0b0b4015e7cc6fbabc3cbc4344c07c230fe3d195e90c8ae0dc5d55a2d4e"; }; passthru = { - updateScript = gnome3.updateScript { packageName = "gnome-power-manager"; attrPath = "gnome3.gnome-power-manager"; }; + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "gnome3.${pname}"; + }; }; - propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ]; - nativeBuildInputs = [ meson ninja pkgconfig wrapGAppsHook - intltool + gettext # needed by meson_post_install.sh glib.dev @@ -45,10 +48,8 @@ stdenv.mkDerivation rec { gnome3.defaultIconTheme ]; - enableParallelBuilding = true; - meta = with stdenv.lib; { - homepage = https://projects.gnome.org/gnome-power-manager/; + homepage = https://projects-old.gnome.org/gnome-power-manager/; description = "View battery and power statistics provided by UPower"; maintainers = gnome3.maintainers; license = licenses.gpl2Plus;