perlPackages.NetAsyncWebSocket: 0.13 -> 0.14 (#352432)
[NixPkgs.git] / pkgs / build-support / references-by-popularity / default.nix
blobf681559411e72e394ddc0d88c0472057c5dd1637
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.
8 path:
9 runCommand "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   ''