mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
Cleanup: Use += to append to envHooks
This commit is contained in:
parent
2db867eec9
commit
e3f7dbbac8
|
@ -2,4 +2,4 @@ addRLibPath () {
|
|||
addToSearchPath R_LIBS_SITE $1/library
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addRLibPath)
|
||||
envHooks+=(addRLibPath)
|
||||
|
|
|
@ -14,7 +14,7 @@ addCVars () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addCVars)
|
||||
envHooks+=(addCVars)
|
||||
|
||||
# Note: these come *after* $out in the PATH (see setup.sh).
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ crossAddCVars () {
|
|||
fi
|
||||
}
|
||||
|
||||
crossEnvHooks=(${crossEnvHooks[@]} crossAddCVars)
|
||||
crossEnvHooks+=(crossAddCVars)
|
||||
|
||||
crossStripDirs() {
|
||||
local dirs="$1"
|
||||
|
|
|
@ -14,7 +14,7 @@ addCVars () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addCVars)
|
||||
envHooks+=(addCVars)
|
||||
|
||||
# Note: these come *after* $out in the PATH (see setup.sh).
|
||||
|
||||
|
|
|
@ -10,4 +10,4 @@ addPkgToClassPath () {
|
|||
done
|
||||
}
|
||||
|
||||
envHooks=(''${envHooks[@]} addPkgToClassPath)
|
||||
envHooks+=(addPkgToClassPath)
|
||||
|
|
|
@ -5,4 +5,4 @@ addDbusIncludePath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addDbusIncludePath)
|
||||
envHooks+=(addDbusIncludePath)
|
||||
|
|
|
@ -10,4 +10,4 @@ addGuileLibPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addGuileLibPath)
|
||||
envHooks+=(addGuileLibPath)
|
||||
|
|
|
@ -5,4 +5,4 @@ addGuileLibPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addGuileLibPath)
|
||||
envHooks+=(addGuileLibPath)
|
||||
|
|
|
@ -2,4 +2,4 @@ addPerlLibPath () {
|
|||
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
envHooks+=(addPerlLibPath)
|
||||
|
|
|
@ -2,4 +2,4 @@ addPerlLibPath () {
|
|||
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
envHooks+=(addPerlLibPath)
|
||||
|
|
|
@ -2,4 +2,4 @@ addPerlLibPath () {
|
|||
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
envHooks+=(addPerlLibPath)
|
||||
|
|
|
@ -2,4 +2,4 @@ addPerlLibPath () {
|
|||
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
envHooks+=(addPerlLibPath)
|
||||
|
|
|
@ -2,4 +2,4 @@ addPerlLibPath () {
|
|||
addToSearchPath PERL5LIB $1/lib/site_perl
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
envHooks+=(addPerlLibPath)
|
||||
|
|
|
@ -2,4 +2,4 @@ addPerlLibPath () {
|
|||
addToSearchPath PERL5LIB $1/@libPrefix@
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
envHooks+=(addPerlLibPath)
|
||||
|
|
|
@ -12,4 +12,4 @@ toPythonPath() {
|
|||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
||||
envHooks+=(addPythonPath)
|
||||
|
|
|
@ -12,4 +12,4 @@ toPythonPath() {
|
|||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
||||
envHooks+=(addPythonPath)
|
||||
|
|
|
@ -12,4 +12,4 @@ toPythonPath() {
|
|||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
||||
envHooks+=(addPythonPath)
|
||||
|
|
|
@ -12,4 +12,4 @@ toPythonPath() {
|
|||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
||||
envHooks+=(addPythonPath)
|
||||
|
|
|
@ -12,4 +12,4 @@ toPythonPath() {
|
|||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
||||
envHooks+=(addPythonPath)
|
||||
|
|
|
@ -12,4 +12,4 @@ toPythonPath() {
|
|||
echo $result
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPythonPath)
|
||||
envHooks+=(addPythonPath)
|
||||
|
|
|
@ -5,5 +5,5 @@ addGstreamer1LibPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addGstreamer1LibPath)
|
||||
envHooks+=(addGstreamer1LibPath)
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ addGstreamerLibPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addGstreamerLibPath)
|
||||
envHooks+=(addGstreamerLibPath)
|
||||
|
|
|
@ -23,5 +23,5 @@ if test -z "$libxmlHookDone"; then
|
|||
# xmllint and xsltproc from looking in /etc/xml/catalog.
|
||||
export XML_CATALOG_FILES
|
||||
if test -z "$XML_CATALOG_FILES"; then XML_CATALOG_FILES=" "; fi
|
||||
envHooks=(${envHooks[@]} addXMLCatalogs)
|
||||
envHooks+=(addXMLCatalogs)
|
||||
fi
|
||||
|
|
|
@ -10,4 +10,4 @@ addSlibPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addSlibPath)
|
||||
envHooks+=(addSlibPath)
|
||||
|
|
|
@ -33,7 +33,7 @@ collectNixLispLDLP () {
|
|||
|
||||
export NIX_LISP_COMMAND NIX_LISP CL_SOURCE_REGISTRY NIX_LISP_ASDF
|
||||
|
||||
envHooks=(envHooks[@] addASDFPaths setLisp collectNixLispLDLP)
|
||||
envHooks+=(addASDFPaths setLisp collectNixLispLDLP)
|
||||
|
||||
mkdir -p "$HOME"/.cache/common-lisp || HOME="$TMP/.temp-$USER-home"
|
||||
mkdir -p "$HOME"/.cache/common-lisp
|
||||
|
|
|
@ -2,4 +2,4 @@ addOcamlMakefile () {
|
|||
export OCAMLMAKEFILE="@out@/include/OCamlMakefile"
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addOcamlMakefile)
|
||||
envHooks+=(addOcamlMakefile)
|
||||
|
|
|
@ -2,4 +2,4 @@ addAclocals () {
|
|||
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH $1/share/aclocal
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addAclocals)
|
||||
envHooks+=(addAclocals)
|
||||
|
|
|
@ -4,7 +4,7 @@ addPkgConfigPath () {
|
|||
}
|
||||
|
||||
if test -n "$crossConfig"; then
|
||||
crossEnvHooks=(${crossEnvHooks[@]} addPkgConfigPath)
|
||||
crossEnvHooks+=(addPkgConfigPath)
|
||||
else
|
||||
envHooks=(${envHooks[@]} addPkgConfigPath)
|
||||
envHooks+=(addPkgConfigPath)
|
||||
fi
|
||||
|
|
|
@ -42,8 +42,8 @@ stdenv.mkDerivation {
|
|||
mkdir -p $OCAMLFIND_DESTDIR
|
||||
fi
|
||||
}
|
||||
|
||||
envHooks=(''${envHooks[@]} addOCamlPath)
|
||||
|
||||
envHooks+=(addOCamlPath)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -2,4 +2,4 @@ addNodePath () {
|
|||
addToSearchPath NODE_PATH $1/lib/node_modules
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addNodePath)
|
||||
envHooks+=(addNodePath)
|
||||
|
|
|
@ -18,5 +18,5 @@ if test -z "$sgmlHookDone"; then
|
|||
export ftp_proxy=http://nodtd.invalid/
|
||||
|
||||
export SGML_CATALOG_FILES
|
||||
envHooks=(${envHooks[@]} addSGMLCatalogs)
|
||||
envHooks+=(addSGMLCatalogs)
|
||||
fi
|
||||
|
|
|
@ -4,4 +4,4 @@ addTeXMFPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addTeXMFPath)
|
||||
envHooks+=(addTeXMFPath)
|
||||
|
|
|
@ -4,4 +4,4 @@ addTeXMFPath () {
|
|||
fi
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addTeXMFPath)
|
||||
envHooks+=(addTeXMFPath)
|
||||
|
|
Loading…
Reference in a new issue