3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
2018-03-15 04:39:43 +00:00
, gettext
, fetchurl
, pkgconfig
, gtk3
, glib
, meson
, ninja
, upower
, python3
, desktop-file-utils
, wrapGAppsHook
, gnome3 }:
2018-03-15 04:39:43 +00:00
let
pname = "gnome-power-manager";
version = "3.32.0";
2018-03-15 04:39:43 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0drfn3wcc8l4n07qwv6p0rw2dwcd00hwzda282q62l6sasks2b2g";
};
passthru = {
2018-03-15 04:39:43 +00:00
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
nativeBuildInputs = [
meson
ninja
pkgconfig
wrapGAppsHook
2018-03-15 04:39:43 +00:00
gettext
# needed by meson_post_install.sh
python3
glib.dev
desktop-file-utils
];
buildInputs = [
gtk3
glib
upower
2019-02-13 21:47:50 +00:00
gnome3.adwaita-icon-theme
];
meta = with stdenv.lib; {
2018-03-15 04:39:43 +00:00
homepage = https://projects-old.gnome.org/gnome-power-manager/;
description = "View battery and power statistics provided by UPower";
maintainers = gnome3.maintainers;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}