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:
parent
51e7e32c3b
commit
93b6926054
3 changed files with 34 additions and 6 deletions
|
@ -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];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue