From 5574797502c4e3b0d6912643f7361906c3daf9e8 Mon Sep 17 00:00:00 2001 From: Kieran Collienne Date: Sun, 3 Mar 2024 16:44:01 -0800 Subject: [PATCH] fix nix search all packages command --- internal/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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