summaryrefslogtreecommitdiff
path: root/repl
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-04-03 19:08:35 -0700
committerBen Sima <ben@bsima.me>2020-04-03 19:08:35 -0700
commit9214692fa60fce959d5fc34dc84c1aa682248222 (patch)
tree260afcb83b321f2d58961ef67cecd7b22c2891c8 /repl
parente82440741295543769fa79ae05519d58fcb81b08 (diff)
Centralize hackage packages to deps.nix
This also allowes me to make 'repl' into a universal command. This makes it much easier to work across different projects.
Diffstat (limited to 'repl')
-rwxr-xr-xrepl9
1 files changed, 1 insertions, 8 deletions
diff --git a/repl b/repl
index 40528c7..b09bb5a 100755
--- a/repl
+++ b/repl
@@ -1,11 +1,4 @@
#!/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" \
+nix run -f $BIZ_ROOT/default.nix "repl" \
-c ghci -i$BIZ_ROOT -ghci-script "$BIZ_ROOT/.ghci"