Merge pull request #309377 from SuperSandro2000/throttled

throttled: fix execution
This commit is contained in:
Sandro 2024-05-08 16:52:53 +02:00 committed by GitHub
commit b86b509aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 2 deletions

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; {