writeDirectReferencesToFile
pkgs.writeDirectReferencesToFile
Docs pulled from | This Revision | 10 minutes ago
Noogle detected
Implementation
The following is the current implementation of this function.
writeDirectReferencesToFile =
path:
runCommand "runtime-references"
{
exportReferencesGraph = [
"graph"
path
];
inherit path;
}
''
touch ./references
while read p; do
read dummy
read nrRefs
if [[ $p == $path ]]; then
for ((i = 0; i < nrRefs; i++)); do
read ref;
echo $ref >>./references
done
else
for ((i = 0; i < nrRefs; i++)); do
read ref;
done
fi
done < graph
sort ./references >$out
'';