OleMussmann / Nix-Package-Search

Cache the nix package list, query and sort by relevance
MIT License
16 stars 1 forks source link

nps cache getting stale when using flakes #2

Open OleMussmann opened 1 year ago

OleMussmann commented 1 year ago

nps gets package information from nix channels. This poses two problems:

  1. Package information is getting stale when channels are not updated. But updating a channel is not something nps should do. Maybe a warning would be helpful, so users can refresh it themselves?
  2. On systems that are flake-only, there are no channels a (non-root) user can update. Where should fresh the package infos come from then?

Long-term it might be necessary to switch to (or use additionally) nix search nixpkgs as a source instead.