brew-src: 4.4.5 -> 4.4.23
This commit is contained in:
Generated
+4
-4
@@ -3,16 +3,16 @@
|
|||||||
"brew-src": {
|
"brew-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731323744,
|
"lastModified": 1740943974,
|
||||||
"narHash": "sha256-SxUQm4cTHcaoPQHoXe26ZV8cZiMWBGow8MjE4L+MckM=",
|
"narHash": "sha256-2lRLfb6qwoUAsX/XtYmt/ETxtGid6/VaBeFiRsoVMtU=",
|
||||||
"owner": "Homebrew",
|
"owner": "Homebrew",
|
||||||
"repo": "brew",
|
"repo": "brew",
|
||||||
"rev": "254bf3fe9d8fa2e1b2fb55dbcf535b2d870180c4",
|
"rev": "64efed206deeb9c2304d9e5b5910dcbf0a509c15",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "Homebrew",
|
"owner": "Homebrew",
|
||||||
"ref": "4.4.5",
|
"ref": "4.4.23",
|
||||||
"repo": "brew",
|
"repo": "brew",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nix-darwin.url = "github:LnL7/nix-darwin";
|
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||||
brew-src = {
|
brew-src = {
|
||||||
url = "github:Homebrew/brew/4.4.5";
|
url = "github:Homebrew/brew/4.4.23";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+33
-8
@@ -6,6 +6,23 @@
|
|||||||
# nix-homebrew:
|
# nix-homebrew:
|
||||||
# Run scripts/update-brew-tail.sh to update this
|
# Run scripts/update-brew-tail.sh to update this
|
||||||
|
|
||||||
|
# Use HOMEBREW_BREW_WRAPPER if set.
|
||||||
|
export HOMEBREW_ORIGINAL_BREW_FILE="${HOMEBREW_BREW_FILE}"
|
||||||
|
if [[ -n "${HOMEBREW_BREW_WRAPPER:-}" ]]
|
||||||
|
then
|
||||||
|
HOMEBREW_BREW_FILE="${HOMEBREW_BREW_WRAPPER}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# These variables are exported in this file and are not allowed to be overridden by the user.
|
||||||
|
BIN_BREW_EXPORTED_VARS=(
|
||||||
|
HOMEBREW_BREW_FILE
|
||||||
|
HOMEBREW_PREFIX
|
||||||
|
HOMEBREW_REPOSITORY
|
||||||
|
HOMEBREW_LIBRARY
|
||||||
|
HOMEBREW_USER_CONFIG_HOME
|
||||||
|
HOMEBREW_ORIGINAL_BREW_FILE
|
||||||
|
)
|
||||||
|
|
||||||
# Load Homebrew's variable configuration files from disk.
|
# Load Homebrew's variable configuration files from disk.
|
||||||
export_homebrew_env_file() {
|
export_homebrew_env_file() {
|
||||||
local env_file
|
local env_file
|
||||||
@@ -16,17 +33,26 @@ export_homebrew_env_file() {
|
|||||||
do
|
do
|
||||||
# only load HOMEBREW_* lines
|
# only load HOMEBREW_* lines
|
||||||
[[ "${line}" = "HOMEBREW_"* ]] || continue
|
[[ "${line}" = "HOMEBREW_"* ]] || continue
|
||||||
|
|
||||||
|
# forbid overriding variables that are set in this file
|
||||||
|
local invalid_variable
|
||||||
|
for VAR in "${BIN_BREW_EXPORTED_VARS[@]}"
|
||||||
|
do
|
||||||
|
[[ "${line}" = "${VAR}"* ]] && invalid_variable="${VAR}"
|
||||||
|
done
|
||||||
|
[[ -n "${invalid_variable:-}" ]] && continue
|
||||||
|
|
||||||
export "${line?}"
|
export "${line?}"
|
||||||
done <"${env_file}"
|
done <"${env_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# First, load the system-wide configuration.
|
# First, load the system-wide configuration.
|
||||||
|
export_homebrew_env_file "/etc/homebrew/brew.env"
|
||||||
|
|
||||||
unset SYSTEM_ENV_TAKES_PRIORITY
|
unset SYSTEM_ENV_TAKES_PRIORITY
|
||||||
if [[ -n "${HOMEBREW_SYSTEM_ENV_TAKES_PRIORITY-}" ]]
|
if [[ -n "${HOMEBREW_SYSTEM_ENV_TAKES_PRIORITY-}" ]]
|
||||||
then
|
then
|
||||||
SYSTEM_ENV_TAKES_PRIORITY="1"
|
SYSTEM_ENV_TAKES_PRIORITY="1"
|
||||||
else
|
|
||||||
export_homebrew_env_file "/etc/homebrew/brew.env"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Next, load the prefix configuration
|
# Next, load the prefix configuration
|
||||||
@@ -42,7 +68,7 @@ fi
|
|||||||
|
|
||||||
export_homebrew_env_file "${HOMEBREW_USER_CONFIG_HOME}/brew.env"
|
export_homebrew_env_file "${HOMEBREW_USER_CONFIG_HOME}/brew.env"
|
||||||
|
|
||||||
# If the system configuration takes priority, load it last.
|
# If the system configuration takes priority, load it again to override any previous settings.
|
||||||
if [[ -n "${SYSTEM_ENV_TAKES_PRIORITY-}" ]]
|
if [[ -n "${SYSTEM_ENV_TAKES_PRIORITY-}" ]]
|
||||||
then
|
then
|
||||||
export_homebrew_env_file "/etc/homebrew/brew.env"
|
export_homebrew_env_file "/etc/homebrew/brew.env"
|
||||||
@@ -102,11 +128,10 @@ done
|
|||||||
|
|
||||||
unset VAR VAR_NEW MANPAGE_VARS USED_BY_HOMEBREW_VARS
|
unset VAR VAR_NEW MANPAGE_VARS USED_BY_HOMEBREW_VARS
|
||||||
|
|
||||||
export HOMEBREW_BREW_FILE
|
for VAR in "${BIN_BREW_EXPORTED_VARS[@]}"
|
||||||
export HOMEBREW_PREFIX
|
do
|
||||||
export HOMEBREW_REPOSITORY
|
export "${VAR?}"
|
||||||
export HOMEBREW_LIBRARY
|
done
|
||||||
export HOMEBREW_USER_CONFIG_HOME
|
|
||||||
|
|
||||||
# set from user environment
|
# set from user environment
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
|
|||||||
Reference in New Issue
Block a user