Closed cdmistman closed 8 months ago
allows filtering results by whether the store path exists
--filter-built
nix eval github:replit/rippkgs/cad/filter-available#lib.genRegistry --refresh --apply 'f: f builtins.currentSystem (import <nixpkgs> { config = { allowUnsupportedSystem = true; }; })' --impure --json >nixpkgs.json
nix run github:replit/rippkgs/cad/filter-available#rippkgs-index -- --output nixpkgs.sqlite --registry nixpkgs.json
nix run github:replit/rippkgs/cad/filter-available#rippkgs -- --filter-built --index nixpkgs.sqlite <something>
<something>
Why
allows filtering results by whether the store path exists
What changed
--filter-built
flagTest plan
nix eval github:replit/rippkgs/cad/filter-available#lib.genRegistry --refresh --apply 'f: f builtins.currentSystem (import <nixpkgs> { config = { allowUnsupportedSystem = true; }; })' --impure --json >nixpkgs.json
nix run github:replit/rippkgs/cad/filter-available#rippkgs-index -- --output nixpkgs.sqlite --registry nixpkgs.json
nix run github:replit/rippkgs/cad/filter-available#rippkgs -- --filter-built --index nixpkgs.sqlite <something>
<something>
that you've previously built from the specific nix channel, then the result should appear<something>
you haven't built, then the result should not appear. but if you remove the--filter-built
flag, then the result should appear!