mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-16 12:20:25 +03:00
feat: add nix-direnv
This commit is contained in:
parent
e4637a77ef
commit
c327c4a77d
3
.envrc
3
.envrc
@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 2.2.0; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.0/direnvrc" "sha256-5EwyKnkJNQeXrRkYbwwRBcXbibosCJqyIUuz9Xq+LRc="
|
||||
fi
|
||||
# Environment variables for the project. See https://direnv.net/
|
||||
if nix flake metadata &>/dev/null; then
|
||||
use flake
|
||||
|
Loading…
Reference in New Issue
Block a user