Skip to content

Commit acf8cc6

Browse files
authored
[feat] add support for ghc-flakr's hs-run executable (#3716)
1 parent 7721923 commit acf8cc6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

β€Ž.envrcβ€Ž

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ env_dir=./.env
1616
[[ -d "$layout_dir" ]] || mkdir -p "$layout_dir"
1717

1818
if [[ ! -d "$env_dir" || ! -f "$layout_dir/nix-rebuild" || "$store_paths" != $(< "$layout_dir/nix-rebuild" ) ]]; then
19+
bcmd=nix
1920
if command -v nom &> /dev/null; then
2021
if [[ "${USE_NOM}" != "0" ]]; then
21-
nom build -f nix wireServer.devEnv --out-link ./.env
22+
bcmd=nom
2223
fi
23-
else
24-
nix build -f nix wireServer.devEnv -Lv --out-link ./.env
2524
fi
25+
echo "πŸ”§ Building environment"
26+
$bcmd build -f nix wireServer.devEnv -Lv --out-link ./.env
27+
echo "πŸ”§ Building hs-run"
28+
$bcmd build github:wireapp/ghc-flakr -Lv --out-link ./.env
2629
echo "$store_paths" > "$layout_dir/nix-rebuild"
2730
fi
2831

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
adds a new executable, hs-run, to quickly run haskell scripts

β€Žhack/bin/.envrcβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake github:wireapp/ghc-flakr -Lv

0 commit comments

Comments
Β (0)