Nix expr: Mute `shellHook` when running non-interactively
This commit is contained in:
parent
c5f6dcd4e8
commit
9a737444c4
13
shell.nix
13
shell.nix
|
@ -33,11 +33,14 @@
|
||||||
fi
|
fi
|
||||||
alias discohawk-monort-local='${avail.launchScriptsForLocalBuild.discohawk}'
|
alias discohawk-monort-local='${avail.launchScriptsForLocalBuild.discohawk}'
|
||||||
alias emuhawk-monort-local='${avail.launchScriptsForLocalBuild.emuhawk}'
|
alias emuhawk-monort-local='${avail.launchScriptsForLocalBuild.emuhawk}'
|
||||||
pfx="$(realpath --relative-to="$PWD" "$BIZHAWKBUILD_HOME")/"
|
case "$-" in *i*)
|
||||||
if [ "$pfx" = "./" ]; then pfx=""; fi
|
pfx="$(realpath --relative-to="$PWD" "$BIZHAWKBUILD_HOME")/"
|
||||||
printf "%s\n%s\n" \
|
if [ "$pfx" = "./" ]; then pfx=""; fi
|
||||||
"Run ''${pfx}Dist/Build{Debug,Release}.sh to build the solution. You may need to clean up with ''${pfx}Dist/CleanupBuildOutputDirs.sh." \
|
printf "%s\n%s\n" \
|
||||||
"Once built, running {discohawk,emuhawk}-monort-local will pull from ''${pfx}output/* and use Mono from Nixpkgs."
|
"Run ''${pfx}Dist/Build{Debug,Release}.sh to build the solution. You may need to clean up with ''${pfx}Dist/CleanupBuildOutputDirs.sh." \
|
||||||
|
"Once built, running {discohawk,emuhawk}-monort-local will pull from ''${pfx}output/* and use Mono from Nixpkgs."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
shells = lib.pipe avail [
|
shells = lib.pipe avail [
|
||||||
|
|
Loading…
Reference in New Issue