virt-manager: fix wmclass

Use `dontWrapGApps` to prevent double wrapping from breaking wmclass

Fixes #150120
This commit is contained in:
Joerie de Gram 2021-12-10 23:27:03 +01:00
parent 42f76dd630
commit 056f498ccf

View File

@ -47,10 +47,14 @@ python3Packages.buildPythonApplication rec {
setupPyGlobalFlags = [ "--no-update-icon-cache" ];
dontWrapGApps = true;
preFixup = ''
gappsWrapperArgs+=(--set PYTHONPATH "$PYTHONPATH")
# these are called from virt-install in initrdinject.py
gappsWrapperArgs+=(--prefix PATH : "${makeBinPath [ cpio e2fsprogs file findutils gzip ]}")
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
checkInputs = with python3Packages; [ cpio cdrtools pytestCheckHook ];