diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 8fe82094d54e..2c32d81cf357 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -478,7 +478,11 @@ self: super: { doctest-discover = dontCheck super.doctest-discover; # Depends on itself for testing - tasty-discover = dontCheck super.tasty-discover; + tasty-discover = overrideCabal super.tasty-discover (drv: { + preBuild = '' + export PATH="$PWD/dist/build/tasty-discover:$PATH" + '' + (drv.preBuild or ""); + }); # Known issue with nondeterministic test suite failure # https://github.com/nomeata/tasty-expected-failure/issues/21