Skip to content

Commit

Permalink
fix: make direnv work without flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Sep 26, 2023
1 parent eb8f054 commit 1d48d54
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
use flake
eval "$shellHook"
if ! type "nix" > /dev/null; then
use nix -A default
eval "$shellHook"
use nix -A ghcjs
else
use flake .#default
eval "$shellHook"
use flake .#ghcjs
fi

0 comments on commit 1d48d54

Please sign in to comment.