nix/lib/inputs.nix
2025-08-12 15:47:26 +10:00

17 lines
532 B
Nix

let
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
# we use lix's flake-compat fork here to "lazify" the flake inputs
node = lock.nodes.root.inputs.__flake-compat;
inherit (lock.nodes.${node}.locked) narHash rev url;
flake-compat = builtins.fetchTarball {
url = "${url}/archive/${rev}.tar.gz";
sha256 = narHash;
};
flake = import flake-compat {
src = ../.;
# these options prevent eager store copies
copySourceTreeToStore = false;
useBuiltinsFetchTree = true;
};
in
flake.inputs