#!/usr/bin/env bash EL_BIN=/nix/var/nix/profiles/execline/bin while (( $# >= 1 )); do if [[ $1 == "--" ]]; then shift break fi packages+=( "$1" ) shift done export PARAMS=$(PATH=${EL_BIN}:$PATH execlineb -c 'dollarat -d ""' "$@") exec nix-shell -p "${packages[@]}" --run "exec '${EL_BIN}/import' -s -d '' PARAMS '\$PARAMS'"