anchor.diff:        type = types.lines;
         default = "";
         example = ''
  -        # 'brew install --with-rmtp', 'brew services restart' on version changes
  -        brew "denji/nginx/nginx-full", args: ["with-rmtp"], restart_service: :changed
  -        # 'brew install', always 'brew services restart', 'brew link', 'brew unlink mysql' (if it is installed)
  -        brew "mysql@5.6", restart_service: true, link: true, conflicts_with: ["mysql"]
  -
           # 'brew cask install --appdir=~/my-apps/Applications'
           cask "firefox", args: { appdir: "~/my-apps/Applications" }
           # 'brew cask install' only if '/usr/libexec/java_home --failfast' fails
  
positive.code:         brewfileLine =
            if configuredOptions == {} then null
            else "cask_args " + mkBrewfileLineOptionsListString configuredOptions;
        };
    };
  in
  
negative.code:     };
  
      brews = mkOption {
        type = with types; listOf (coercedTo str (name: { inherit name; }) (submodule brewOptions));
        default = [];
        example = literalExpression ''
          # Adapted examples from https://github.com/Homebrew/homebrew-bundle#usage
          [
            # 'brew install'
            "imagemagick"
            # 'brew install --with-rmtp', 'brew services restart' on version changes
            {
              name = "denji/nginx/nginx-full";
              args = [ "with-rmtp" ];
              restart_service = "changed";
            }
            # 'brew install', always 'brew services restart', 'brew link', 'brew unlink mysql' (if it is installed)
            {
              name = "mysql@5.6";
              restart_service = true;
              link = true;
              conflicts_with = [ "mysql" ];
            }
          ]
        '';
        description = ''
          Homebrew brews to install.
  
          Brews defined as strings, e.g., <literal>"imagemagick"</literal>, are a shorthand for:
  
          <code>{ name = "imagemagick"; }</code>
        '';
      };
  
      caskArgs = mkOption {
  