diff --git a/pkgs/by-name/po/powersupply/package.nix b/pkgs/by-name/po/powersupply/package.nix index d20287e3e41b..9db6d03b639a 100644 --- a/pkgs/by-name/po/powersupply/package.nix +++ b/pkgs/by-name/po/powersupply/package.nix @@ -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;