3
0
Fork 0
forked from mirrors/nixpkgs

Cleanup: Use += to append to envHooks

This commit is contained in:
Eelco Dolstra 2014-07-08 14:20:05 +02:00
parent 2db867eec9
commit e3f7dbbac8
33 changed files with 35 additions and 35 deletions

View file

@ -2,4 +2,4 @@ addRLibPath () {
addToSearchPath R_LIBS_SITE $1/library
}
envHooks=(${envHooks[@]} addRLibPath)
envHooks+=(addRLibPath)

View file

@ -14,7 +14,7 @@ addCVars () {
fi
}
envHooks=(${envHooks[@]} addCVars)
envHooks+=(addCVars)
# Note: these come *after* $out in the PATH (see setup.sh).

View file

@ -11,7 +11,7 @@ crossAddCVars () {
fi
}
crossEnvHooks=(${crossEnvHooks[@]} crossAddCVars)
crossEnvHooks+=(crossAddCVars)
crossStripDirs() {
local dirs="$1"

View file

@ -14,7 +14,7 @@ addCVars () {
fi
}
envHooks=(${envHooks[@]} addCVars)
envHooks+=(addCVars)
# Note: these come *after* $out in the PATH (see setup.sh).

View file

@ -10,4 +10,4 @@ addPkgToClassPath () {
done
}
envHooks=(''${envHooks[@]} addPkgToClassPath)
envHooks+=(addPkgToClassPath)

View file

@ -5,4 +5,4 @@ addDbusIncludePath () {
fi
}
envHooks=(${envHooks[@]} addDbusIncludePath)
envHooks+=(addDbusIncludePath)

View file

@ -10,4 +10,4 @@ addGuileLibPath () {
fi
}
envHooks=(${envHooks[@]} addGuileLibPath)
envHooks+=(addGuileLibPath)

View file

@ -5,4 +5,4 @@ addGuileLibPath () {
fi
}
envHooks=(${envHooks[@]} addGuileLibPath)
envHooks+=(addGuileLibPath)

View file

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
}
envHooks=(${envHooks[@]} addPerlLibPath)
envHooks+=(addPerlLibPath)

View file

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
}
envHooks=(${envHooks[@]} addPerlLibPath)
envHooks+=(addPerlLibPath)

View file

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
}
envHooks=(${envHooks[@]} addPerlLibPath)
envHooks+=(addPerlLibPath)

View file

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
}
envHooks=(${envHooks[@]} addPerlLibPath)
envHooks+=(addPerlLibPath)

View file

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/site_perl
}
envHooks=(${envHooks[@]} addPerlLibPath)
envHooks+=(addPerlLibPath)

View file

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/@libPrefix@
}
envHooks=(${envHooks[@]} addPerlLibPath)
envHooks+=(addPerlLibPath)

View file

@ -12,4 +12,4 @@ toPythonPath() {
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)
envHooks+=(addPythonPath)

View file

@ -12,4 +12,4 @@ toPythonPath() {
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)
envHooks+=(addPythonPath)

View file

@ -12,4 +12,4 @@ toPythonPath() {
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)
envHooks+=(addPythonPath)

View file

@ -12,4 +12,4 @@ toPythonPath() {
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)
envHooks+=(addPythonPath)

View file

@ -12,4 +12,4 @@ toPythonPath() {
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)
envHooks+=(addPythonPath)

View file

@ -12,4 +12,4 @@ toPythonPath() {
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)
envHooks+=(addPythonPath)

View file

@ -5,5 +5,5 @@ addGstreamer1LibPath () {
fi
}
envHooks=(${envHooks[@]} addGstreamer1LibPath)
envHooks+=(addGstreamer1LibPath)

View file

@ -5,4 +5,4 @@ addGstreamerLibPath () {
fi
}
envHooks=(${envHooks[@]} addGstreamerLibPath)
envHooks+=(addGstreamerLibPath)

View file

@ -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

View file

@ -10,4 +10,4 @@ addSlibPath () {
fi
}
envHooks=(${envHooks[@]} addSlibPath)
envHooks+=(addSlibPath)

View file

@ -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

View file

@ -2,4 +2,4 @@ addOcamlMakefile () {
export OCAMLMAKEFILE="@out@/include/OCamlMakefile"
}
envHooks=(${envHooks[@]} addOcamlMakefile)
envHooks+=(addOcamlMakefile)

View file

@ -2,4 +2,4 @@ addAclocals () {
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH $1/share/aclocal
}
envHooks=(${envHooks[@]} addAclocals)
envHooks+=(addAclocals)

View file

@ -4,7 +4,7 @@ addPkgConfigPath () {
}
if test -n "$crossConfig"; then
crossEnvHooks=(${crossEnvHooks[@]} addPkgConfigPath)
crossEnvHooks+=(addPkgConfigPath)
else
envHooks=(${envHooks[@]} addPkgConfigPath)
envHooks+=(addPkgConfigPath)
fi

View file

@ -42,8 +42,8 @@ stdenv.mkDerivation {
mkdir -p $OCAMLFIND_DESTDIR
fi
}
envHooks=(''${envHooks[@]} addOCamlPath)
envHooks+=(addOCamlPath)
'';
meta = {

View file

@ -2,4 +2,4 @@ addNodePath () {
addToSearchPath NODE_PATH $1/lib/node_modules
}
envHooks=(${envHooks[@]} addNodePath)
envHooks+=(addNodePath)

View file

@ -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

View file

@ -4,4 +4,4 @@ addTeXMFPath () {
fi
}
envHooks=(${envHooks[@]} addTeXMFPath)
envHooks+=(addTeXMFPath)

View file

@ -4,4 +4,4 @@ addTeXMFPath () {
fi
}
envHooks=(${envHooks[@]} addTeXMFPath)
envHooks+=(addTeXMFPath)