Commit 6523df45 authored by Profpatsch's avatar Profpatsch

buildSupport/package-tests: preferLocalBuild

parent 9f601e47
......@@ -19,6 +19,7 @@ let
# the original derivation as much as possible
outputs = drvOutOutputs;
passthru = drvOut.drvAttrs;
preferLocalBuild = true;
# depend on drvDeps (by putting it in builder context)
inherit drvDeps;
}
......@@ -41,7 +42,9 @@ let
withTests = tests: drv:
let testDrvs = lib.mapAttrsToList
(name: testScript:
runCommand "${drv.name}-test-${name}" {} ''
runCommand "${drv.name}-test-${name}" {
preferLocalBuild = true;
} ''
${testScript}
touch "$out"
'') tests;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment