1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 11:03:54 +02:00

* Regression test for exportBuildReferencesGraph. It currently fails.

This commit is contained in:
Eelco Dolstra 2009-03-17 17:38:32 +00:00
parent 51e7e32c3b
commit 93b6926054
3 changed files with 34 additions and 6 deletions

View file

@ -2,21 +2,27 @@ with import ./config.nix;
rec {
buildGraphBuilder = builtins.toFile "build-graph-builder"
printRefs =
''
while read path; do
read drv
read nrRefs
echo "$path has $nrRefs references"
echo -n "$path" >> $out
echo "$path" >> $out
for ((n = 0; n < $nrRefs; n++)); do read ref; echo "ref $ref"; done
done < refs
'';
buildGraph = mkDerivation {
runtimeGraph = mkDerivation {
name = "dependencies";
builder = buildGraphBuilder;
builder = builtins.toFile "build-graph-builder" "${printRefs}";
exportReferencesGraph = ["refs" (import ./dependencies.nix)];
};
buildGraph = mkDerivation {
name = "dependencies";
builder = builtins.toFile "build-graph-builder" "${printRefs}";
exportBuildReferencesGraph = ["refs" (import ./dependencies.nix).drvPath];
};
}