Files: 75cae756370f47f90e6bbe2933fc3874808d076c / bin / nix-environment
343 bytesRaw
1 | #!/usr/bin/env bash |
2 | |
3 | EL_BIN=/nix/var/nix/profiles/execline/bin |
4 | |
5 | while (( $# >= 1 )); do |
6 | if [[ $1 == "--" ]]; then |
7 | shift |
8 | break |
9 | fi |
10 | packages+=( "$1" ) |
11 | shift |
12 | done |
13 | |
14 | export PARAMS=$(PATH=${EL_BIN}:$PATH execlineb -c 'dollarat -d ""' "$@") |
15 | |
16 | exec nix-shell -p "${packages[@]}" --run "exec '${EL_BIN}/import' -s -d '' PARAMS '\$PARAMS'" |
Built with git-ssb-web