gnome3.gnome-power-manager: clean up

This commit is contained in:
Jan Tojnar 2018-03-15 05:39:43 +01:00
parent a2e460be4d
commit e227c2c46c
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -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;