Skip to content

Commit

Permalink
powersupply: init at 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Luflosi committed Jan 12, 2024
1 parent cd4bb03 commit a622538
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/by-name/po/powersupply/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{ lib
, python3
, fetchFromGitLab
, desktop-file-utils
, gobject-introspection
, gtk3
, libhandy
, meson
, ninja
, pkg-config
, wrapGAppsHook
}:

python3.pkgs.buildPythonApplication rec {
pname = "powersupply";
version = "0.9.0";

format = "other";

src = fetchFromGitLab {
owner = "martijnbraam";
repo = "powersupply";
rev = version;
hash = "sha256-3NXoOqveMlMezYe4C78F3764KeAy5Sz3M714PO3h/eI=";
};

nativeBuildInputs = [
desktop-file-utils
gtk3
gobject-introspection
meson
ninja
pkg-config
wrapGAppsHook
];

buildInputs = [
gtk3
libhandy
];

propagatedBuildInputs = with python3.pkgs; [
pygobject3
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

strictDeps = true;

meta = with lib; {
description = "Graphical app to display power status of mobile Linux platforms";
homepage = "https://gitlab.com/MartijnBraam/powersupply";
license = licenses.mit;
mainProgram = "powersupply";
platforms = platforms.linux;
maintainers = with maintainers; [ Luflosi ];
};
}

0 comments on commit a622538

Please sign in to comment.