throttled: fix execution
The error was: ImportError: cannot import name GLib, introspection typelib not found
This commit is contained in:
parent
d74e81202e
commit
409122886c
1 changed files with 12 additions and 2 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue