nixpkgs/pkgs/desktops/gnome/apps/gnome-power-manager/default.nix
Jan Tojnar 468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00

61 lines
1.1 KiB
Nix

{ lib, stdenv
, gettext
, fetchurl
, pkg-config
, gtk3
, glib
, meson
, ninja
, upower
, python3
, desktop-file-utils
, wrapGAppsHook
, gnome }:
let
pname = "gnome-power-manager";
version = "3.32.0";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0drfn3wcc8l4n07qwv6p0rw2dwcd00hwzda282q62l6sasks2b2g";
};
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "gnome.${pname}";
};
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook
gettext
# needed by meson_post_install.sh
python3
glib.dev
desktop-file-utils
];
buildInputs = [
gtk3
glib
upower
gnome.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;
};
}