networkd-dispatcher: fix pygobject3

This commit is contained in:
XYenon 2024-05-09 16:09:24 +08:00
parent b15a12e8fd
commit 74fa11a545

View File

@ -4,7 +4,7 @@
, fetchpatch
, python3Packages
, asciidoc
, makeWrapper
, wrapGAppsNoGuiHook
, iw
}:
@ -43,10 +43,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
asciidoc
makeWrapper
wrapGAppsNoGuiHook
python3Packages.wrapPython
];
dontWrapGApps = true;
checkInputs = with python3Packages; [
dbus-python
iw
@ -72,9 +74,14 @@ stdenv.mkDerivation rec {
doCheck = true;
preFixup = ''
makeWrapperArgs+=( \
"''${gappsWrapperArgs[@]}" \
--prefix PATH : "${lib.makeBinPath [ iw ]}" \
)
'';
postFixup = ''
wrapPythonPrograms
wrapProgram $out/bin/networkd-dispatcher --prefix PATH : ${lib.makeBinPath [ iw ]}
'';
meta = with lib; {