powersupply: 0.9.0 -> 0.10.1

This fork seems more maintained and is also used by Alpine Linux and the AUR.

https://gitlab.postmarketos.org/postmarketOS/powersupply/-/tags/0.10.0
https://gitlab.postmarketos.org/postmarketOS/powersupply/-/tags/0.10.1
This commit is contained in:
Luflosi
2025-09-14 12:30:17 +02:00
parent 0c31baec06
commit c4b84412a2
+19 -19
View File
@@ -4,57 +4,57 @@
fetchFromGitLab,
desktop-file-utils,
gobject-introspection,
gtk3,
libhandy,
gtk4,
libadwaita,
meson,
ninja,
pkg-config,
wrapGAppsHook3,
wrapGAppsHook4,
}:
python3.pkgs.buildPythonApplication rec {
pname = "powersupply";
version = "0.9.0";
version = "0.10.1";
format = "other";
src = fetchFromGitLab {
owner = "martijnbraam";
domain = "gitlab.postmarketos.org";
owner = "postmarketOS";
repo = "powersupply";
rev = version;
hash = "sha256-3NXoOqveMlMezYe4C78F3764KeAy5Sz3M714PO3h/eI=";
hash = "sha256-sPdtrm2WQYjPu+1bb0ltBiqS9t8FFvbgRdGe1PEthy0=";
};
postPatch = ''
substituteInPlace build-aux/meson/postinstall.py \
--replace 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
'';
nativeBuildInputs = [
desktop-file-utils
gtk3
gobject-introspection
gtk4 # for gtk4-update-icon-cache
gobject-introspection # Without this, launching the app on aarch64-linux results in ValueError: Namespace Gtk not available
meson
ninja
pkg-config
wrapGAppsHook3
wrapGAppsHook4
];
buildInputs = [
gtk3
libhandy
gtk4
libadwaita
];
propagatedBuildInputs = with python3.pkgs; [
dependencies = 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";
homepage = "https://gitlab.postmarketos.org/postmarketOS/powersupply";
license = licenses.mit;
mainProgram = "powersupply";
platforms = platforms.linux;