Added doCheck support to builder-defs.nix

svn path=/nixpkgs/trunk/; revision=12371
This commit is contained in:
Michael Raskin 2008-07-17 13:39:58 +00:00
parent ecefcac4d7
commit 622634d6dd
1 changed files with 364 additions and 358 deletions

View File

@ -442,6 +442,8 @@ args: with args; with stringsWithDeps; with lib;
realPhaseNames = args.phaseNames ++ realPhaseNames = args.phaseNames ++
["doForceShare" "doPropagate" "doForceCopy"] ["doForceShare" "doPropagate" "doForceCopy"]
++ ++
(optional (getAttr ["doCheck"] false args) "doMakeCheck")
++
(optional (getAttr ["alwaysFail"] false args) "doFail") (optional (getAttr ["alwaysFail"] false args) "doFail")
; ;
@ -450,6 +452,10 @@ args: with args; with stringsWithDeps; with lib;
a() { return 127; } ; a ; a() { return 127; } ; a ;
"; ";
doMakeCheck = FullDepEntry (''
make check
'') ["minInit"];
extraDerivationAttrs = lib.getAttr ["extraDerivationAttrs"] {} args; extraDerivationAttrs = lib.getAttr ["extraDerivationAttrs"] {} args;
builderDefsPackage = bd: func: args: ( builderDefsPackage = bd: func: args: (