Nix expr: Add `hawkSourceInfo.mainAppFilename`
This commit is contained in:
parent
8e3486a50a
commit
7a8b9b13ff
|
@ -210,6 +210,7 @@ in {
|
||||||
hasAssetsInOutput = !isVersionAtLeast "2.6.1" version;
|
hasAssetsInOutput = !isVersionAtLeast "2.6.1" version;
|
||||||
hasFFmpegPatch_e68a49aa5 = isVersionAtLeast "2.9.2" version; # with e68a49aa5, downloading *and running* FFmpeg finally works; TODO use FFmpeg from Nixpkgs since it's a stable version (4.4.1)
|
hasFFmpegPatch_e68a49aa5 = isVersionAtLeast "2.9.2" version; # with e68a49aa5, downloading *and running* FFmpeg finally works; TODO use FFmpeg from Nixpkgs since it's a stable version (4.4.1)
|
||||||
hasMiscTypeCheckerPatch_6afb3be98 = isVersionAtLeast "2.6.2" version;
|
hasMiscTypeCheckerPatch_6afb3be98 = isVersionAtLeast "2.6.2" version;
|
||||||
|
mainAppFilename = "EmuHawk.exe"; # for emuhawk-mono-wrapper launch script
|
||||||
neededExtraManagedDeps = neededExtraManagedDepsApprox;
|
neededExtraManagedDeps = neededExtraManagedDepsApprox;
|
||||||
needsLibGLVND = false; # true iff not using nixGL (i.e. on NixOS) AND using the OpenGL renderer (the default option)
|
needsLibGLVND = false; # true iff not using nixGL (i.e. on NixOS) AND using the OpenGL renderer (the default option)
|
||||||
needsSDL = isVersionAtLeast "2.9.2" version;
|
needsSDL = isVersionAtLeast "2.9.2" version;
|
||||||
|
|
|
@ -66,8 +66,9 @@
|
||||||
in writeShellScript "emuhawk-mono-wrapper" ''
|
in writeShellScript "emuhawk-mono-wrapper" ''
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -e "$BIZHAWK_HOME/EmuHawk.exe" ]; then
|
mainAppPath="$BIZHAWK_HOME/${bizhawkAssemblies.hawkSourceInfo.mainAppFilename}"
|
||||||
printf "no such file: %s\n" "$BIZHAWK_HOME/EmuHawk.exe"
|
if [ ! -e "$mainAppPath" ]; then
|
||||||
|
printf "no such file: %s\n" "$mainAppPath"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -87,8 +88,7 @@
|
||||||
fi
|
fi
|
||||||
printf "(capturing output in %s/EmuHawkMono_last*.txt)\n" "$PWD" >&2
|
printf "(capturing output in %s/EmuHawkMono_last*.txt)\n" "$PWD" >&2
|
||||||
exec '${redirectOutputToFiles}' EmuHawkMono_laststdout.txt EmuHawkMono_laststderr.txt \
|
exec '${redirectOutputToFiles}' EmuHawkMono_laststdout.txt EmuHawkMono_laststderr.txt \
|
||||||
'${lib.getBin bizhawkAssemblies.mono}/bin/mono' \
|
'${lib.getBin bizhawkAssemblies.mono}/bin/mono' "$mainAppPath" --config=config.json "$@"
|
||||||
"$BIZHAWK_HOME/EmuHawk.exe" --config=config.json "$@"
|
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
inherit emuhawk;
|
inherit emuhawk;
|
||||||
|
|
Loading…
Reference in New Issue