This provides a nix
plugin which adds the command nix scrape <URI>
.
This package also provides a wrapper executable around nix
which can be
invoked as shown below:
$ nix run github:flox/scrape-flake-pkgs -- nixpkgs \
|jq '.legacyPackages["x86_64-linux"]|keys[]'|wc -l;
19008
Feel free to extend the metadata collection routines in scrape.cc to suit your purposes.
By default the tool will search {x86_64,aarch64}-{linux,darwin}
.
The flag --all-systems
may be used to scrape every defined system.
The option --systems system-list
may be used to scrape systems named in a
space separated list.
The --all-systems
flag will supersede the --systems
option.
Ex:
$ nix run github:flox/scrape-flake-pkgs -- \
--systems 'x86_64-linux aarch64-linux' github:NixOS/nixpkgs/22.11;