inkcut: avoid dirty PYTHONPATH

This avoids picking up libraries from the users' PYTHONPATH, which
might conflict with the libraries that inkcut actually expects to
run with.

You can reproduce that problem with `nix-shell -p inkcut python310Packages.atom --run inkcut`:
it will pick up the python 3.10 atom while inkcut is still built with pyton 3.9,
leading to an error on startup.

Fixes #159179
This commit is contained in:
Arnout Engelen 2022-05-15 14:19:16 +02:00
parent c777cdf5c5
commit 337d65fe62
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA

View File

@ -53,7 +53,7 @@ buildPythonApplication rec {
];
dontWrapQtApps = true;
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
makeWrapperArgs = [ "--unset" "PYTHONPATH" "\${qtWrapperArgs[@]}" ];
postInstall = ''
mkdir -p $out/share/inkscape/extensions