git ssb

0+

clacke / gists



Commit 03e288c9b9e4d60e7d19ac8bd0cdaa7b052221ec

nix-environment: refactoring before going Full Execline

Claes Wallin (韋嘉誠) committed on 10/15/2016, 12:56:07 PM
Parent: 03200cbf5432bd9d64c03fe43b56f9eae145317d

Files changed

bin/nix-environmentchanged
bin/nix-environmentView
@@ -15,7 +15,12 @@
1515 packages+=( "$1" )
1616 shift
1717 done
1818
19-export PARAMS=$(PATH=${EL_BIN}:$PATH execlineb -c 'dollarat -d ""' "$@")
19 +export PACKAGES=$(PATH=${EL_BIN}:$PATH execlineb -c 'dollarat -d ""' "${packages[@]}")
2020
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