mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-21 19:29:49 -04:00
fix: bad lorri hook eval
This commit is contained in:
parent
cc66c1f4f5
commit
cda5b02a37
9
.envrc
Normal file
9
.envrc
Normal 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
|
11
shell.nix
11
shell.nix
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user