Skip to content

Feature request: search packages at a specific nixpkgs git revision #520

@cloudyluna

Description

@cloudyluna

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogThis might be implemented at a future date. No focus yet.feature requestRequest a feature from the developers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions