Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
13 lines
401 B
Nix
13 lines
401 B
Nix
{ runCommand, python3, coreutils }:
|
|
# Write the references of `path' to a file, in order of how "popular" each
|
|
# reference is. Nix 2 only.
|
|
path: runCommand "closure-paths"
|
|
{
|
|
exportReferencesGraph.graph = path;
|
|
__structuredAttrs = true;
|
|
preferLocalBuild = true;
|
|
nativeBuildInputs = [ coreutils python3 ];
|
|
}
|
|
''
|
|
python3 ${./closure-graph.py} "$NIX_ATTRS_JSON_FILE" graph > ''${outputs[out]}
|
|
''
|