crane/shell.nix
adisbladis 8b42ac1096 default.nix: Move to shell.nix
In it's current form the default.nix file is not useful, but a
shell.nix for classic Nix development might be.
2022-06-02 14:23:13 +08:00

12 lines
319 B
Nix

let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
locked = lock.nodes.flake-compat.locked;
compat = fetchTarball {
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
sha256 = locked.narHash;
};
flake = import compat { src = ./.; };
in
flake.shellNix