git ssb

0+

clacke / gists



Tree: 75cae756370f47f90e6bbe2933fc3874808d076c

Files: 75cae756370f47f90e6bbe2933fc3874808d076c / bin / nix-environment

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

Built with git-ssb-web