Generate a rippkgs index
mainThe rippkgs-index CLI is used to create a SQLite database of nixpkgs expressions. You can index the default nixpkgs channel, a specific directory, or a registry generated via a flake.
Indexing the default nixpkgs channel
rippkgs-index nixpkgs -o $XDG_DATA_HOME/rippkgs-index.sqliteIndexing a specific nixpkgs directory
If you have a custom channel, pass the path explicitly:
rippkgs-index nixpkgs -o $XDG_DATA_HOME/rippkgs-index.sqlite ~/.nix-defexpr/channels/my-very-special-nixpkgs-channelIndexing via a registry (to avoid recursive-nix problems)
First, generate a registry JSON using nix eval, then pass it to rippkgs-index:
nix eval -L .#lib.genRegistry --apply 'f: f (import <nixpkgs> { })' --impure --json > registry.json
rippkgs-index registry -o rippkgs-index.sqlite registry.jsonrippkgs-index nixpkgs -o $XDG_DATA_HOME/rippkgs-index.sqlite