Commit 03e288c9b9e4d60e7d19ac8bd0cdaa7b052221ec
nix-environment: refactoring before going Full Execline
Claes Wallin (韋嘉誠) committed on 10/15/2016, 12:56:07 PMParent: 03200cbf5432bd9d64c03fe43b56f9eae145317d
Files changed
bin/nix-environment | changed |
bin/nix-environment | ||
---|---|---|
@@ -15,7 +15,12 @@ | ||
15 | 15 … | packages+=( "$1" ) |
16 | 16 … | shift |
17 | 17 … | done |
18 | 18 … | |
19 | -export PARAMS=$(PATH=${EL_BIN}:$PATH execlineb -c 'dollarat -d ""' "$@") | |
19 … | +export PACKAGES=$(PATH=${EL_BIN}:$PATH execlineb -c 'dollarat -d ""' "${packages[@]}") | |
20 | 20 … | |
21 | -exec nix-shell -p "${packages[@]}" --run "exec '${EL_BIN}/import' -s -d '' PARAMS '\$PARAMS'" | |
21 … | +exec ${EL_BIN}/execlineb -c " | |
22 … | + ${EL_BIN}/import -u EL_BIN"' | |
23 … | + ${EL_BIN}/import -u -s -d "" PACKAGES | |
24 … | + nix-shell -p $PACKAGES --run | |
25 … | + "exec '"'"'${EL_BIN}/elgetpositionals'"'"' \\$@" | |
26 … | +' "$@" |
Built with git-ssb-web