1let
2 inherit (builtins.fromJSON (builtins.readFile ./flake.lock)) nodes;
3 inherit (nodes.${nodes.root.inputs.flake-compat}) locked;
4in
5if (builtins ? getFlake) then
6 (builtins.getFlake (toString ./.))
7else
8 (
9 (import (
10 builtins.fetchTarball {
11 url = locked.url or "https://github.com/NixOS/flake-compat/archive/${locked.rev}.tar.gz";
12 sha256 = locked.narHash;
13 }
14 ))
15 { src = ./.; }
16 ).defaultNix