mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
2d5114452d
derivation attribute.
23 lines
533 B
Nix
23 lines
533 B
Nix
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)];
|
|
};
|
|
|
|
}
|