1 { runCommand, python3, coreutils }:
2 # Write the references of `path' to a file, in order of how "popular" each
3 # reference is. Nix 2 only.
4 path: runCommand "closure-paths"
6 exportReferencesGraph.graph = path;
7 __structuredAttrs = true;
8 preferLocalBuild = true;
9 nativeBuildInputs = [ coreutils python3 ];
12 python3 ${./closure-graph.py} "$NIX_ATTRS_JSON_FILE" graph > ''${outputs[out]}