haskellPackages: set prefix directory when running under Wine

Fixes error:
  chdir to /homeless-shelter/.wine : No such file or directory
This commit is contained in:
Alexandre Esteves
2025-11-27 20:56:25 +00:00
parent ed294aa6ff
commit 6c856e8725
@@ -41,6 +41,7 @@ let
buildPackages.writeShellScriptBin ("iserv-wrapper" + lib.optionalString enableProfiling "-prof") ''
set -euo pipefail
PORT=$((5000 + $RANDOM % 5000))
${lib.optionalString stdenv.hostPlatform.isWindows "export WINEPREFIX=$TMP"}
(>&2 echo "---> Starting interpreter on port $PORT")
${emulator} ${hostProxy} tmp $PORT &
RISERV_PID="$!"