-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add .envrc and shell.nix for non-flake setups
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# If we are a computer with nix-shell available, then use that to setup | ||
# the build environment with exactly what we need. | ||
if has nix; then | ||
use nix | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(import | ||
( | ||
let | ||
flake-compat = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.flake-compat; | ||
in | ||
fetchTarball { | ||
url = "https://github.com/edolstra/flake-compat/archive/${flake-compat.locked.rev}.tar.gz"; | ||
sha256 = flake-compat.locked.narHash; | ||
} | ||
) | ||
{src = ./.;}) | ||
.shellNix |