blob: 3e30d2dcea7a226c9b479528f631a75cf71d29c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
with import ./config.nix;
rec {
buildGraphBuilder = builtins.toFile "build-graph-builder"
''
#cat refs
while read path; do
read drv
read nrRefs
echo "$path has $nrRefs references"
echo -n "$path" >> $out
for ((n = 0; n < $nrRefs; n++)); do read ref; echo "ref $ref"; done
done < refs
'';
buildGraph = mkDerivation {
name = "dependencies";
builder = buildGraphBuilder;
exportReferencesGraph = ["refs" (import ./dependencies.nix)];
};
}
|