3
0
Fork 0
forked from mirrors/nixpkgs

haskellPackages.tasty-discover: simplify override

If we are cross compiling we can't and don't run the tests since they
wouldn't be able to be executed on the host platform.

While native compiling, we need to avoid an infinite recursion.
This commit is contained in:
sternenseemann 2021-06-19 21:40:11 +02:00 committed by sterni
parent 83220ad7b9
commit c0b69bcbb9

View file

@ -478,10 +478,7 @@ self: super: {
doctest-discover = dontCheck super.doctest-discover;
# Depends on itself for testing
tasty-discover = addBuildTool super.tasty-discover
(if pkgs.buildPlatform != pkgs.hostPlatform
then self.buildHaskellPackages.tasty-discover
else dontCheck super.tasty-discover);
tasty-discover = dontCheck super.tasty-discover;
# Known issue with nondeterministic test suite failure
# https://github.com/nomeata/tasty-expected-failure/issues/21