Files
lix/shell.nix
Chip Bilbrey 5c7ea4f446 Use locked flake-compat in shell.nix
Change-Id: I059aa6da6365f1a5a46b506e57d9b3ab2b73d8d8
2024-12-30 07:25:23 -08:00

10 lines
362 B
Nix

let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
shell =
(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}