Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #365 from kollienne/main
Browse files Browse the repository at this point in the history
fix nix search all packages command
  • Loading branch information
bketelsen authored Mar 4, 2024
2 parents 2bf88f2 + 5574797 commit 30e451c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (pc *PackageCache) Update() error {
}

func (pc *PackageCache) packageIndex() ([]byte, error) {
args := []string{"search", "nixpkgs", "--json"}
args := []string{"search", "nixpkgs", "--json", "^"}
cmd, buf := cmdutil.CommandTTYWithBufferNoOut("nix", args...)
cmd.Env = os.Environ()
// nix search nixpkgs --json
Expand Down

0 comments on commit 30e451c

Please sign in to comment.