nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 21 lines 442 B view raw
1{ 2 runCommand, 3 python3, 4 coreutils, 5}: 6# Write the references of `path' to a file, in order of how "popular" each 7# reference is. Nix 2 only. 8path: 9runCommand "closure-paths" 10 { 11 exportReferencesGraph.graph = path; 12 __structuredAttrs = true; 13 preferLocalBuild = true; 14 nativeBuildInputs = [ 15 coreutils 16 python3 17 ]; 18 } 19 '' 20 python3 ${./closure-graph.py} "$NIX_ATTRS_JSON_FILE" graph > ''${outputs[out]} 21 ''