diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 597346c7..71ca450e 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -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