File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 42
42
writeShellScriptBin ( "iserv-wrapper" + lib . optionalString enableProfiling "-prof" ) ''
43
43
#!${ stdenv . shell }
44
44
set -euo pipefail
45
+ ISERV_ARGS='' ${ISERV_ARGS:-}
46
+ PROXY_ARGS='' ${PROXY_ARGS:-}
45
47
# Unset configure flags as configure should have run already
46
48
unset configureFlags
47
49
PORT=$((5000 + $RANDOM % 5000))
48
50
(>&2 echo "---> Starting ${ interpreter . exeName } on port $PORT")
49
- ${ qemu } /bin/qemu-${ qemuSuffix } ${ interpreter . override ( lib . optionalAttrs hostPlatform . isAndroid { setupBuildFlags = [ "--ghc-option=-optl-static" ] ++ lib . optional hostPlatform . isAarch32 "--ghc-option=-optl-no-pie" ; } ) } /bin/${ interpreter . exeName } tmp $PORT &
51
+ ${ qemu } /bin/qemu-${ qemuSuffix } ${ interpreter . override
52
+ ( lib . optionalAttrs hostPlatform . isAndroid {
53
+ setupBuildFlags = [ "--ghc-option=-optl-static" ] ++ lib . optional hostPlatform . isAarch32 "--ghc-option=-optl-no-pie" ;
54
+ patches = [ ./patches/iserv-proxy-interpreter-9.3-android.patch ] ;
55
+ enableDebugRTS = true ;
56
+ } ) } /bin/${ interpreter . exeName } tmp $PORT $ISERV_ARGS &
50
57
(>&2 echo "---| ${ interpreter . exeName } should have started on $PORT")
51
58
RISERV_PID="$!"
52
- ${ iserv-proxy } /bin/iserv-proxy $@ 127.0.0.1 "$PORT"
59
+ ${ iserv-proxy } /bin/iserv-proxy $@ 127.0.0.1 "$PORT" $PROXY_ARGS
53
60
(>&2 echo "---> killing ${ interpreter . exeName } ...")
54
61
kill $RISERV_PID
55
62
'' ;
You can’t perform that action at this time.
0 commit comments