diff --git a/builder/comp-builder.nix b/builder/comp-builder.nix index 934a8680f9..ec90c3bd27 100644 --- a/builder/comp-builder.nix +++ b/builder/comp-builder.nix @@ -279,8 +279,6 @@ let runHook postBuild ''; - checkPhase = "notice: Tests are only executed by building the .run sub-derivation of this component."; - # Note: Cabal does *not* copy test executables during the `install` phase. # # Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a @@ -363,6 +361,8 @@ let runHook postInstall '' + (lib.optionalString keepSource '' rm -rf dist + '') + (lib.optionalString (haskellLib.isTest componentId) '' + echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}. ''); shellHook = ''