-
-
Notifications
You must be signed in to change notification settings - Fork 86
Description
Hi! Thank you for maintaining this awesome tool :D.
Nixpkgs channels, particularly nixos-unstable, update very quickly, and package versions change often. While this is usually fine when tracking a channel directly (using --channel flag), it can make it harder to determine the exact package versions used in a Nix flakes project, where the nixpkgs revision is pinned in the flake.lock file.
With that said, I would like nh search to support searching packages at a specific nixpkgs git commit revision.
For example:
nh search packageName --git-rev "2119f4ff47dfa4073288f8d8187a3ae3006eeb32"This would allow users to easily look up which package versions correspond to the pinned nixpkgs revision used by their flake, without manually checking the nixpkgs repository or evaluating Nix expressions manually.
I think this could significantly improve the workflow for users who rely on flakes and pinned nixpkgs revisions.
Thanks!