on iko/ghcjs-patch-master help sign in
Fix warning message for `checkPhase` (#835)
41d7316Hamish Mackenzie
builder/comp-builder.nix+2−2
@@ -279,8 +279,6 @@ let
279 runHook postBuild
279 runHook postBuild
280 '';
280 '';
281
281
282− checkPhase = "notice: Tests are only executed by building the .run sub-derivation of this component.";
283−
284 # Note: Cabal does *not* copy test executables during the `install` phase.
282 # Note: Cabal does *not* copy test executables during the `install` phase.
285 #
283 #
286 # Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a
284 # Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a
@@ -363,6 +361,8 @@ let
363 runHook postInstall
361 runHook postInstall
364 '' + (lib.optionalString keepSource ''
362 '' + (lib.optionalString keepSource ''
365 rm -rf dist
363 rm -rf dist
364+ '') + (lib.optionalString (haskellLib.isTest componentId) ''
365+ echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
366 '');
366 '');
367
367
368 shellHook = ''
368 shellHook = ''