on iko/ghcjs-patch-master help sign in
Workaround possible TH environment overflow running `wine` (#1517)
5a310b0Hamish Mackenzie
overlays/mingw_w64.nix+2
@@ -44,6 +44,8 @@ let
44 ln -s "$l" "''${l#lib}"
44 ln -s "$l" "''${l#lib}"
45 done
45 done
46 )
46 )
47+ # Not sure why this `unset` helps. It might avoids some kind of overflow issue. We see `wine` fail to start when building `cardano-wallet-cli` test `unit`.
48+ unset pkgsHostTargetAsString
47 WINEDLLOVERRIDES="winemac.drv=d" WINEDEBUG=warn-all,fixme-all,-menubuilder,-mscoree,-ole,-secur32,-winediag WINEPREFIX=$TMP ${wine}/bin/wine64 $REMOTE_ISERV/remote-iserv.exe tmp $PORT &
49 WINEDLLOVERRIDES="winemac.drv=d" WINEDEBUG=warn-all,fixme-all,-menubuilder,-mscoree,-ole,-secur32,-winediag WINEPREFIX=$TMP ${wine}/bin/wine64 $REMOTE_ISERV/remote-iserv.exe tmp $PORT &
48 (>&2 echo "---| remote-iserv should have started on $PORT")
50 (>&2 echo "---| remote-iserv should have started on $PORT")
49 RISERV_PID="$!"
51 RISERV_PID="$!"