nixpkgs/pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

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