mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
setup.sh: fatal: Undefined variable
define hook arrays before assigning to them
This commit is contained in:
parent
bf99a819a1
commit
9f156d0adc
1 changed files with 4 additions and 0 deletions
|
@ -312,6 +312,10 @@ declare -a pkgTargetHookVars=(envTargetTargetHook)
|
|||
|
||||
declare -a pkgHookVarVars=(pkgBuildHookVars pkgHostHookVars pkgTargetHookVars)
|
||||
|
||||
# those variables are declared here, since where and if they are used varies
|
||||
# shellcheck disable=SC2034
|
||||
declare -a preFixupHooks fixupOutputHooks preConfigureHooks postFixupHooks postUnpackHooks unpackCmdHooks
|
||||
|
||||
# Add env hooks for all sorts of deps with the specified host offset.
|
||||
addEnvHooks() {
|
||||
local depHostOffset="$1"
|
||||
|
|
Loading…
Reference in a new issue