mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
gnome3.gnome-power-manager: clean up
This commit is contained in:
parent
a2e460be4d
commit
e227c2c46c
1 changed files with 12 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue