Use locked flake-compat in shell.nix

Change-Id: I059aa6da6365f1a5a46b506e57d9b3ab2b73d8d8
This commit is contained in:
Chip Bilbrey 2024-12-29 14:15:16 -08:00
parent 92ed9fee7d
commit 5c7ea4f446

View file

@ -1,7 +1,9 @@
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
shell =
(import (fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz") {
src = ./.;
}).shellNix;
(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 = ./.; }).shellNix;
in
shell.default // shell.devShells.${builtins.currentSystem}