{ lib, stdenv , fetchFromGitHub , nix-update-script , pantheon , pkg-config , meson , python3 , ninja , vala , gtk3 , granite , bamf , libgtop , udev , wingpanel , libgee }: stdenv.mkDerivation rec { pname = "wingpanel-indicator-power"; version = "2.2.0"; src = fetchFromGitHub { owner = "elementary"; repo = pname; rev = version; sha256 = "sha256-wjYZXFnzvPSukzh1BNvyaFxKpYm+kNNFm5AsthLXGVE="; }; passthru = { updateScript = nix-update-script { attrPath = "pantheon.${pname}"; }; }; nativeBuildInputs = [ meson ninja pkg-config python3 vala ]; buildInputs = [ bamf granite gtk3 libgee libgtop udev wingpanel ]; postPatch = '' chmod +x meson/post_install.py patchShebangs meson/post_install.py ''; meta = with lib; { description = "Power Indicator for Wingpanel"; homepage = "https://github.com/elementary/wingpanel-indicator-power"; license = licenses.gpl2Plus; platforms = platforms.linux; maintainers = pantheon.maintainers; }; }