Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 748 B view raw
1with import ../../../../. { }; 2 3let 4 package-requests = stdenv.mkDerivation { 5 name = "julia-package-requests.csv"; 6 7 __impure = true; 8 9 buildInputs = [ 10 cacert 11 gzip 12 wget 13 ]; 14 15 buildCommand = '' 16 wget https://julialang-logs.s3.amazonaws.com/public_outputs/current/package_requests.csv.gz 17 gunzip package_requests.csv.gz 18 cp package_requests.csv $out 19 ''; 20 }; 21 22 registry = callPackage ../registry.nix { }; 23 24in 25 26runCommand "top-julia-packages.yaml" 27 { 28 __impure = true; 29 nativeBuildInputs = [ 30 (python3.withPackages ( 31 ps: with ps; [ 32 pyyaml 33 toml 34 ] 35 )) 36 ]; 37 } 38 '' 39 python ${./process_top_n.py} ${package-requests} ${registry} > $out 40 ''