blob: 40528c715a15ac8b847612cc6179c664205504db (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
set -ex
prefix=$(echo $PWD | sed -e "s|^$BIZ_ROOT/*||" -e "s|/|.|g")
if [[ "$prefix" == "" ]]
then
target="$1"
else
target="$prefix.$1"
fi
nix run -f $BIZ_ROOT/default.nix "$target.env" \
-c ghci -i$BIZ_ROOT -ghci-script "$BIZ_ROOT/.ghci"
|