Skip to content

Commit

Permalink
chore: .envrc tweaks (#1763)
Browse files Browse the repository at this point in the history
Summary: Uses the `.envrc` skeleton I use in my projects (which I got from
`jj`, myself.) This uses the nix-community `nix-direnv` integration which has
some improvements over the default `direnv` implementation. It also tweaks the
recommended use of this file by suggesting use of `source` for users, so they
can just get all upstream changes easily.


Change-Id: I3e02972580f76e2c1833080315aa99c6

Signed-off-by: Austin Seipp <[email protected]>
  • Loading branch information
thoughtpolice authored Oct 24, 2023
1 parent 48a5cf4 commit c4aff1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .envrc.recommended
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# To use: echo "source_env .envrc.recommended" >> .envrc

if has nix; then

if ! has nix_direnv_version || ! nix_direnv_version 2.4.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi

use flake
fi
1 change: 0 additions & 1 deletion .envrc.sample

This file was deleted.

0 comments on commit c4aff1f

Please sign in to comment.