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
commitef5ba4d5b29e329ab4240120870ef4d860ebd54e
authorMichael Alan Dorman <mdorman@ironicdesign.com>
dateThu 3 Aug 2017, 20:24 (9 years ago)
parent5b3e403
pkgs/build-support/emacs/wrapper.nix+2−1
@@ -80,7 +80,8 @@ stdenv.mkDerivation {
8080 linkPath "$1" "share/emacs/site-lisp" "share/emacs/site-lisp"
8181 }
8282
83− for pkg in $requires; do
83+ # Iterate over the array of inputs (avoiding nix's own interpolation)
84+ for pkg in "''${requires[@]}"; do
8485 linkEmacsPackage $pkg
8586 done
8687