fix: bad lorri hook eval

This commit is contained in:
Jeremy Wall 2024-10-08 19:26:17 -04:00
parent cc66c1f4f5
commit cda5b02a37
2 changed files with 9 additions and 11 deletions

9
.envrc Normal file
View File

@ -0,0 +1,9 @@
if has lorri; then
eval "$(lorri direnv)"
elif has nix; then
echo "Using flake fallback since lorri isn't installed"
use flake
else
# noop
echo "Unsupported direnv configuration. We need nix flake support and lorri installed"
fi

View File

@ -1,11 +0,0 @@
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
(import (
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
) {
src = ./.;
}).devShell