Skip to content

Commit

Permalink
feat: add direnv-support via nix (#26)
Browse files Browse the repository at this point in the history
* fix build issues
* update flake inputs
  • Loading branch information
obreitwi authored May 7, 2024
1 parent 9936400 commit 524d72b
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 129 deletions.
12 changes: 12 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
fi

# Load .envrc.local
source_env_if_exists .envrc.local

# Tell nix-direnv to only activate new version manually
nix_direnv_manual_reload

# Use the environment defined in the flake
use_flake .
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/target
**/*.rs.bk
Cargo.lock
.direnv
result
result-*
Loading

0 comments on commit 524d72b

Please sign in to comment.