sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / build-support / references-by-popularity / default.nix
blob2171c622f000aa39cc99f077ac15840781bfbec5
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]}