depot/third_party/nixpkgs/pkgs/desktops/gnome/apps/gnome-power-manager/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

59 lines
1.1 KiB
Nix

{ stdenv
, lib
, gettext
, fetchurl
, pkg-config
, gtk3
, glib
, meson
, ninja
, upower
, python3
, desktop-file-utils
, wrapGAppsHook
, gnome
}:
stdenv.mkDerivation rec {
pname = "gnome-power-manager";
version = "43.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-power-manager/${lib.versions.major version}/gnome-power-manager-${version}.tar.xz";
sha256 = "faq0i73bMOnfKrplDLYNBeZnyfiFrOagoeeVDgy90y8=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook
gettext
# needed by meson_post_install.sh
python3
glib
desktop-file-utils
];
buildInputs = [
gtk3
glib
upower
];
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-power-manager";
attrPath = "gnome.gnome-power-manager";
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-power-manager";
description = "View battery and power statistics provided by UPower";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}