nixos-config/packages/lib/importFlake.nix

12 lines
342 B
Nix
Raw Normal View History

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