Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkgs/development/haskell-modules/generic-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ let
shouldSymlink = shouldAdd && doInstallIntermediates;
};

testRunner =
"exec"
+ lib.optionalString isCross (
" " + (if stdenv.hostPlatform.isGhcjs then "node" else crossSupport.emulator)
);

# This is a script suitable for --test-wrapper of Setup.hs' test command
# (https://cabal.readthedocs.io/en/3.12/setup-commands.html#cmdoption-runhaskell-Setup.hs-test-test-wrapper).
# We use it to set some environment variables that the test suite may need,
Expand All @@ -602,7 +608,7 @@ let
export GHC_PACKAGE_PATH="''${NIX_GHC_PACKAGE_PATH_FOR_TEST}"
fi

exec "$@"
${testRunner} "$@"
'';

testTargetsString =
Expand Down
Loading