diff options
author | Ben Sima <ben@bsima.me> | 2020-04-03 19:08:35 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-03 19:08:35 -0700 |
commit | 9214692fa60fce959d5fc34dc84c1aa682248222 (patch) | |
tree | 260afcb83b321f2d58961ef67cecd7b22c2891c8 /repl | |
parent | e82440741295543769fa79ae05519d58fcb81b08 (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-x | repl | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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" |