58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, pantheon, pkgconfig, meson, python3
|
|
, ninja, vala, gtk3, granite, bamf, libgtop, udev, wingpanel
|
|
, libgee, gobject-introspection, elementary-icon-theme, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wingpanel-indicator-power";
|
|
version = "2.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "02gp9m9zkmhcl43nz02kjkcim4zm25zab3il8dhwkihh731g1c6j";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = pantheon.updateScript {
|
|
repoName = pname;
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
python3
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
bamf
|
|
elementary-icon-theme
|
|
granite
|
|
gtk3
|
|
libgee
|
|
libgtop
|
|
udev
|
|
wingpanel
|
|
];
|
|
|
|
PKG_CONFIG_WINGPANEL_2_0_INDICATORSDIR = "lib/wingpanel";
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Power Indicator for Wingpanel";
|
|
homepage = https://github.com/elementary/wingpanel-indicator-power;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = pantheon.maintainers;
|
|
};
|
|
}
|