1{ stdenv, lib, haskellLib, srcOnly }:
5 component = drv.config;
7# This derivation can be used to execute test component.
8# The $out of the derivation is a file containing the resulting
10in stdenv.mkDerivation ({
11 name = (drv.name + "-check");
13 # Useing `srcOnly` (rather than getting the `src` via a `drv.passthru`)
14 # should correctly apply the patches from `drv` (if any).
15 src = drv.source or (srcOnly drv);
18 inherit (drv) identifier config configFiles executableToolDepends cleanSrc env exeName;
21 inherit (drv) meta LANG LC_ALL buildInputs nativeBuildInputs;
23 inherit (component) doCheck doCrossCheck;
25 phases = ["unpackPhase" "buildPhase"];
27 # If doCheck or doCrossCheck are false we may still build this
28 # component and we want it to quietly succeed.
34 ${toString component.testWrapper} ${drv}/bin/${drv.exeName} ${lib.concatStringsSep " " component.testFlags} | tee $out/test-stdout
36 # Copy over tix files, if they exist
37 find . -iname '${drv.exeName}.tix' -exec mkdir -p $out/share/hpc/vanilla/tix/${drv.exeName} \; -exec cp {} $out/share/hpc/vanilla/tix/${drv.exeName}/ \;
41} // haskellLib.optionalHooks {
42 inherit (component) preCheck postCheck;
44// lib.optionalAttrs (drv ? LOCALE_ARCHIVE) { inherit (drv) LOCALE_ARCHIVE; }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list