throttled: fix execution

The error was:
ImportError: cannot import name GLib, introspection typelib not found
This commit is contained in:
Sandro Jäckel 2024-05-05 22:21:08 +02:00
parent d74e81202e
commit 409122886c
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, python3Packages, pciutils }:
{ lib, stdenv, fetchFromGitHub, gobject-introspection, python3Packages, pciutils, wrapGAppsHook3 }:
stdenv.mkDerivation rec {
pname = "throttled";
@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-0MsPp6y4r/uZB2SplKV+SAiJoxIs2jgOQmQoQQ2ZKwI=";
};
nativeBuildInputs = [ python3Packages.wrapPython ];
nativeBuildInputs = [
gobject-introspection
python3Packages.wrapPython
wrapGAppsHook3
];
pythonPath = with python3Packages; [
configparser
@ -35,6 +39,12 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
postFixup = "wrapPythonPrograms";
meta = with lib; {