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:
parent
83220ad7b9
commit
c0b69bcbb9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue