@@ -150,9 +150,11 @@ in {
150150 || isVersionAtLeast "2.6" value . hawkSourceInfo . version ) )
151151 ] ;
152152 latestVersionFrag = lib . head releaseFrags ;
153- combined = pp // asmsFromReleaseArtifacts // releasesEmuHawkInstallables // {
154- inherit depsForHistoricalRelease populateHawkSourceInfo releaseTagSourceInfos ;
155- inherit ( emuhawk-local . assemblies ) libretroCores ;
153+ combined = let
154+ launchScriptsForLocalBuild = launchScriptsFor emuhawk-local . assemblies true ;
155+ in ( pp // asmsFromReleaseArtifacts // releasesEmuHawkInstallables // {
156+ inherit depsForHistoricalRelease populateHawkSourceInfo releaseTagSourceInfos launchScriptsForLocalBuild ;
157+ inherit ( emuhawk-local . assemblies ) libretroCores ;
156158 bizhawkAssemblies = pp . buildAssembliesFor ( fillTargetOSDifferences hawkSourceInfoDevBuild ) ;
157159 "bizhawkAssemblies-${ latestVersionFrag } " = pp . buildAssembliesFor
158160 ( fillTargetOSDifferences releaseTagSourceInfos . "info-${ latestVersionFrag } " ) ;
@@ -172,8 +174,27 @@ in {
172174 IDEs = {
173175 kate = [ kate omnisharp-roslyn ] ;
174176 } ;
175- launchScriptsForLocalBuild = launchScriptsFor emuhawk-local . assemblies true ;
176- } ;
177+ shellHook = drv : ''
178+ export BIZHAWKBUILD_HOME='${ builtins . toString ./. } '
179+ export BIZHAWK_HOME="$BIZHAWKBUILD_HOME/output/"
180+ ldLibPath='${ lib . makeLibraryPath drv . buildInputs } ' # for running tests
181+ if [ -z "$LD_LIBRARY_PATH" ]; then
182+ export LD_LIBRARY_PATH="$ldLibPath"
183+ else
184+ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ldLibPath"
185+ fi
186+ alias discohawk-monort-local='${ launchScriptsForLocalBuild . discohawk } '
187+ alias emuhawk-monort-local='${ launchScriptsForLocalBuild . emuhawk } '
188+ case "$-" in *i*)
189+ pfx="$(realpath --relative-to="$PWD" "$BIZHAWKBUILD_HOME")/"
190+ if [ "$pfx" = "./" ]; then pfx=""; fi
191+ printf "%s\n%s\n" \
192+ "Run '' ${pfx}Dist/Build{Debug,Release}.sh to build the solution. You may need to clean up with '' ${pfx}Dist/CleanupBuildOutputDirs.sh." \
193+ "Once built, running {discohawk,emuhawk}-monort-local will pull from '' ${pfx}output/* and use Mono from Nixpkgs."
194+ ;;
195+ esac
196+ '' ;
197+ } ) ;
177198in combined // lib . listToAttrs ( lib . concatLists ( builtins . map
178199 ( f : [
179200 { name = f "latest-bin" ; value = combined . ${ f "${ latestVersionFrag } -bin" } ; }
0 commit comments