Nix expr: Fix running tests in nix-shell
This commit is contained in:
parent
07d1c41712
commit
e8a3b7b250
|
@ -16,6 +16,7 @@
|
||||||
# makedeps
|
# makedeps
|
||||||
, git
|
, git
|
||||||
# rundeps
|
# rundeps
|
||||||
|
, libgdiplus
|
||||||
, libGL
|
, libGL
|
||||||
, lua
|
, lua
|
||||||
, mono
|
, mono
|
||||||
|
@ -62,7 +63,7 @@
|
||||||
'';
|
'';
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
};
|
};
|
||||||
genDepsHostTargetFor = { hawkSourceInfo, mono' ? mono }: [ lua mono' openal (lib.getOutput "out" zstd) ]
|
genDepsHostTargetFor = { hawkSourceInfo, mono' ? mono }: [ libgdiplus lua mono' openal (lib.getOutput "out" zstd) ]
|
||||||
++ lib.optionals hawkSourceInfo.needsSDL [ SDL2 (lib.getOutput "out" udev) ]
|
++ lib.optionals hawkSourceInfo.needsSDL [ SDL2 (lib.getOutput "out" udev) ]
|
||||||
++ lib.optional hawkSourceInfo.needsLibGLVND (lib.getOutput "out" libGL);
|
++ lib.optional hawkSourceInfo.needsLibGLVND (lib.getOutput "out" libGL);
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,6 +31,7 @@ in {
|
||||||
, git ? pkgs.gitMinimal # only when building from-CWD (`-local`)
|
, git ? pkgs.gitMinimal # only when building from-CWD (`-local`)
|
||||||
# rundeps
|
# rundeps
|
||||||
, coreutils ? pkgs.coreutils
|
, coreutils ? pkgs.coreutils
|
||||||
|
, libgdiplus ? pkgs.libgdiplus
|
||||||
, libGL ? pkgs.libGL
|
, libGL ? pkgs.libGL
|
||||||
, lua ? pkgs.lua54Packages.lua
|
, lua ? pkgs.lua54Packages.lua
|
||||||
, mono ? null
|
, mono ? null
|
||||||
|
@ -92,7 +93,7 @@ in {
|
||||||
buildDotnetModule fetchpatch fetchzip hardLinkJoin launchScriptsFor makeDesktopItem
|
buildDotnetModule fetchpatch fetchzip hardLinkJoin launchScriptsFor makeDesktopItem
|
||||||
releaseTagSourceInfos runCommand symlinkJoin writeShellScriptBin
|
releaseTagSourceInfos runCommand symlinkJoin writeShellScriptBin
|
||||||
git
|
git
|
||||||
libGL lua openal SDL2 udev zstd
|
libgdiplus libGL lua openal SDL2 udev zstd
|
||||||
buildConfig doCheck emuhawkBuildFlavour extraDefines extraDotnetBuildFlags;
|
buildConfig doCheck emuhawkBuildFlavour extraDefines extraDotnetBuildFlags;
|
||||||
mono = if mono != null
|
mono = if mono != null
|
||||||
then mono # allow older Mono if set explicitly
|
then mono # allow older Mono if set explicitly
|
||||||
|
|
|
@ -23,6 +23,12 @@
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export BIZHAWKBUILD_HOME='${builtins.toString ./.}'
|
export BIZHAWKBUILD_HOME='${builtins.toString ./.}'
|
||||||
export BIZHAWK_HOME="$BIZHAWKBUILD_HOME/output"
|
export BIZHAWK_HOME="$BIZHAWKBUILD_HOME/output"
|
||||||
|
ldLibPath='${lib.makeLibraryPath bizhawkAssemblies.buildInputs}' # for running tests
|
||||||
|
if [ -z "$LD_LIBRARY_PATH" ]; then
|
||||||
|
export LD_LIBRARY_PATH="$ldLibPath"
|
||||||
|
else
|
||||||
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ldLibPath"
|
||||||
|
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")/"
|
pfx="$(realpath --relative-to="$PWD" "$BIZHAWKBUILD_HOME")/"
|
||||||
|
|
Loading…
Reference in New Issue