modules/homebrew: add homebrew.goPackages option

Add support for `go "pkg"` entries in the generated Brewfile. Homebrew
Bundle supports installing Go packages via `go install`; the `go`
formula is automatically installed if not already present.
This commit is contained in:
Malo Bourgon 2026-02-09 21:01:07 -08:00
parent c65c24c87c
commit cbe4a600d4
No known key found for this signature in database
2 changed files with 27 additions and 5 deletions

View file

@ -77,6 +77,10 @@ in
Xcode = 497799835;
};
homebrew.goPackages = [
"github.com/charmbracelet/crush"
];
homebrew.whalebrews = [
"whalebrew/wget"
];
@ -112,6 +116,9 @@ in
${mkTest "1Password for Safari" ''mas "1Password for Safari", id: 1569813296''}
${mkTest "Xcode" ''mas "Xcode", id: 497799835''}
echo "checking go entries in Brewfile" >&2
${mkTest "github.com/charmbracelet/crush" ''go "github.com/charmbracelet/crush"''}
echo "checking whalebrew entries in Brewfile" >&2
${mkTest "whalebrew/wget" ''whalebrew "whalebrew/wget"''}