Inject own runtimePath to brew.sh
This commit is contained in:
@@ -127,7 +127,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# filter the user environment
|
# filter the user environment
|
||||||
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
PATH="@runtimePath@:/usr/bin:/bin:/usr/sbin:/sbin"
|
||||||
|
|
||||||
FILTERED_ENV=()
|
FILTERED_ENV=()
|
||||||
ENV_VAR_NAMES=(
|
ENV_VAR_NAMES=(
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ let
|
|||||||
src = template;
|
src = template;
|
||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
|
|
||||||
|
inherit runtimePath;
|
||||||
inherit (prefix) prefix library;
|
inherit (prefix) prefix library;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,7 @@ cat >"${brew_tail}" <<EOF
|
|||||||
# nix-homebrew:
|
# nix-homebrew:
|
||||||
# Run scripts/update-brew-tail.sh to update this
|
# Run scripts/update-brew-tail.sh to update this
|
||||||
EOF
|
EOF
|
||||||
sed -e '1,/^HOMEBREW_LIBRARY=/d' "${brew_upstream}" >>"${brew_tail}"
|
sed \
|
||||||
|
-e '1,/^HOMEBREW_LIBRARY=/d' \
|
||||||
|
-e 's/^PATH="/PATH="@runtimePath@:/' \
|
||||||
|
"${brew_upstream}" >>"${brew_tail}"
|
||||||
|
|||||||
Reference in New Issue
Block a user