Fix emacs wrapper expression to honor bash array use

In 8d76eff, @Ericson2314 changed the representation of the value that
`findInputs` generated from a whitespace-separated bunch strings to an
actual array of strings.

Expressions that *consume* that value, however, also needed to be
changed to iterate over all the contents of the array, else they would
only select the first value, which turns out to be somewhat limiting.

Fixes #27873
This commit is contained in:
Michael Alan Dorman 2017-08-03 20:24:55 -04:00
parent 5b3e403eca
commit ef5ba4d5b2

View File

@ -80,7 +80,8 @@ stdenv.mkDerivation {
linkPath "$1" "share/emacs/site-lisp" "share/emacs/site-lisp"
}
for pkg in $requires; do
# Iterate over the array of inputs (avoiding nix's own interpolation)
for pkg in "''${requires[@]}"; do
linkEmacsPackage $pkg
done