From f67a4856c36e64b1f3884f6f59dce0ba0ca9dddd Mon Sep 17 00:00:00 2001 From: Garrett Hopper Date: Tue, 17 Jun 2025 05:52:35 -0500 Subject: [PATCH] Update homebrew module documentation and examples - Replace deprecated homebrew/cask-fonts with apple/apple tap example - Update documentation links from archived homebrew-bundle to brew.sh/Brew-Bundle-and-Brewfile - Update source file references to new location in main brew repository --- modules/homebrew.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/homebrew.nix b/modules/homebrew.nix index 1cef578..2c2469f 100644 --- a/modules/homebrew.nix +++ b/modules/homebrew.nix @@ -54,10 +54,10 @@ let # Submodules ------------------------------------------------------------------------------------- # Option values and descriptions of Brewfile entries are sourced/derived from: # * `brew` manpage: https://docs.brew.sh/Manpage - # * `brew bundle` source files (at https://github.com/Homebrew/homebrew-bundle/tree/9fffe077f1a5a722ed5bd26a87ed622e8cb64e0c): - # * lib/bundle/dsl.rb - # * lib/bundle/{brew,cask,tap}_installer.rb - # * spec/bundle/{brew,cask,tap}_installer_spec.rb + # * `brew bundle` source files (at https://github.com/Homebrew/brew/tree/master/Library/Homebrew/bundle): + # * dsl.rb + # * {brew,cask,tap}_installer.rb + # * ../test/bundle/{brew,cask,tap}_installer_spec.rb onActivationOptions = { config, ... }: { options = { @@ -234,7 +234,7 @@ let options = { name = mkOption { type = types.str; - example = "homebrew/cask-fonts"; + example = "apple/apple"; description = '' When {option}`clone_target` is unspecified, this is the name of a formula repository to tap from GitHub using HTTPS. For example, `"user/repo"` @@ -605,10 +605,10 @@ in type = with types; listOf (coercedTo str (name: { inherit name; }) (submodule tapOptions)); default = [ ]; example = literalExpression '' - # Adapted examples from https://github.com/Homebrew/homebrew-bundle#usage + # Adapted from https://docs.brew.sh/Brew-Bundle-and-Brewfile [ # `brew tap` - "homebrew/cask" + "apple/apple" # `brew tap` with custom Git URL and arguments { @@ -646,7 +646,7 @@ in type = with types; listOf (coercedTo str (name: { inherit name; }) (submodule brewOptions)); default = [ ]; example = literalExpression '' - # Adapted examples from https://github.com/Homebrew/homebrew-bundle#usage + # Adapted from https://docs.brew.sh/Brew-Bundle-and-Brewfile [ # `brew install` "imagemagick" @@ -680,7 +680,7 @@ in type = with types; listOf (coercedTo str (name: { inherit name; }) (submodule caskOptions)); default = [ ]; example = literalExpression '' - # Adapted examples from https://github.com/Homebrew/homebrew-bundle#usage + # Adapted from https://docs.brew.sh/Brew-Bundle-and-Brewfile [ # `brew install --cask` "google-chrome"