Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] add support for ghc-flakr's hs-run executable #3716

Merged
merged 1 commit into from
Nov 15, 2023
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
Loading