Skip to content

Commit

Permalink
Use new flake template (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnae authored Nov 7, 2023
1 parent 67d7fd8 commit 8987d2e
Show file tree
Hide file tree
Showing 9 changed files with 597 additions and 623 deletions.
16 changes: 10 additions & 6 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
mkdir -p .direnv
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.4.0/direnvrc" "sha256-XQzUAvL6pysIJnRJyR7uVpmUSZfc7LSgWQwq/4mBr1U="
# reload when these files change
watch_file flake.nix
watch_file flake.lock
watch_file devshell.nix
# load the flake devShell
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
nix_direnv_watch_file flake.nix
nix_direnv_watch_file flake.lock
nix_direnv_watch_file flake/*.nix
nix_direnv_watch_file devenv/*.nix

if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes and hit enter to try again." >&2
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
**/*.rs.bk
.direnv
.devenv
Loading

0 comments on commit 8987d2e

Please sign in to comment.