File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 30
30
* call as `redirect-output-to-files /target/stdout.txt /target/stderr.txt /path/to/bin arg1 arg2...`
31
31
*/
32
32
redirectOutputToFiles = writeShellScript "redirect-output-to-files" ''
33
- mktemp='${ lib . getBin mktemp } /bin/ mktemp'
33
+ mktemp='${ lib . getExe' mktemp " mktemp" } '
34
34
o="$("$mktemp" -u)"
35
35
e="$("$mktemp" -u)"
36
- '${ lib . getBin mkfifo } /bin/ mkfifo' "$o" "$e"
36
+ '${ lib . getExe' mkfifo " mkfifo" } ' "$o" "$e"
37
37
tee "$1" <"$o" &
38
38
shift
39
39
tee "$1" <"$e" | sed "s/.*/$(tput setaf 1)&$(tput sgr0)/" >&2 &
112
112
fi
113
113
printf "(capturing output in %s/EmuHawkMono_last*.txt)\n" "$PWD" >&2
114
114
exec '${ redirectOutputToFiles } ' EmuHawkMono_laststdout.txt EmuHawkMono_laststderr.txt \
115
- '${ lib . getBin bizhawkAssemblies . mono } /bin/mono '${ monoProfilerFlag } \
115
+ '${ lib . getExe bizhawkAssemblies . mono } '${monoProfilerFlag } \
116
116
"$mainAppPath " --config = config . json "$@"
117
117
'' ;
118
118
in {
137
137
${ if profileManagedCalls == false then "" else ''printf "Will write profiling results to %s/*.mlpd\n" "$PWD"
138
138
'' } export MONO_PATH="$BIZHAWK_HOME/dll"
139
139
${ lib . optionalString ( ! debugPInvokes ) "# " } export MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll # pass `--arg debugPInvokes true` to nix-build to enable
140
- exec '${ lib . getBin bizhawkAssemblies . mono } /bin/mono '${ monoProfilerFlag } \
140
+ exec '${ lib . getExe bizhawkAssemblies . mono } '${monoProfilerFlag } \
141
141
"$BIZHAWK_HOME /DiscoHawk . exe " "$@"
142
142
'' ;
143
143
emuhawkNonNixOS = writeShellScript "emuhawk-mono-wrapper-non-nixos" ''exec '${ nixGL } /bin/nixGL' '${ emuhawk } ' "$@"'' ;
Original file line number Diff line number Diff line change @@ -114,15 +114,15 @@ in {
114
114
git
115
115
gnome-themes-extra gtk2-x11 libgdiplus libGL lua openal SDL2 udev zstd
116
116
buildConfig doCheck extraDefines extraDotnetBuildFlags ;
117
- mono = if mono != null
117
+ mono = lib . recursiveUpdate { meta . mainProgram = "mono" ; } ( if mono != null
118
118
then mono # allow older Mono if set explicitly
119
119
else if isVersionAtLeast "6.12.0.151" pkgs . mono . version
120
120
then pkgs . mono
121
121
else lib . trace "provided Mono too old, using Mono from Nixpkgs 23.05"
122
122
( import ( fetchzip {
123
123
url = "https://github.com/NixOS/nixpkgs/archive/23.05.tar.gz" ;
124
124
hash = "sha512-REPJ9fRKxTefvh1d25MloT4bXJIfxI+1EvfVWq644Tzv+nuq2BmiGMiBNmBkyN9UT5fl2tdjqGliye3gZGaIGg==" ;
125
- } ) { inherit system ; } ) . mono ;
125
+ } ) { inherit system ; } ) . mono ) ;
126
126
monoBasic = fetchzip {
127
127
url = "https://download.mono-project.com/repo/debian/pool/main/m/mono-basic/libmono-microsoft-visualbasic10.0-cil_4.7-0xamarin3+debian9b1_all.deb" ;
128
128
nativeBuildInputs = [ dpkg ] ;
You can’t perform that action at this time.
0 commit comments