Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ env_dir=./.env
[[ -d "$layout_dir" ]] || mkdir -p "$layout_dir"

if [[ ! -d "$env_dir" || ! -f "$layout_dir/nix-rebuild" || "$store_paths" != $(< "$layout_dir/nix-rebuild" ) ]]; then
bcmd=nix
if command -v nom &> /dev/null; then
if [[ "${USE_NOM}" != "0" ]]; then
nom build -f nix wireServer.devEnv --out-link ./.env
bcmd=nom
fi
else
nix build -f nix wireServer.devEnv -Lv --out-link ./.env
fi
echo "🔧 Building environment"
$bcmd build -f nix wireServer.devEnv -Lv --out-link ./.env
echo "🔧 Building hs-run"
$bcmd build github:wireapp/ghc-flakr -Lv --out-link ./.env
echo "$store_paths" > "$layout_dir/nix-rebuild"
fi

Expand Down
1 change: 1 addition & 0 deletions changelog.d/5-internal/add-ghc-flakr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
adds a new executable, hs-run, to quickly run haskell scripts
1 change: 1 addition & 0 deletions hack/bin/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake github:wireapp/ghc-flakr -Lv