nixos-wsl/default.nix

23 lines
434 B
Nix
Raw Normal View History

2024-09-09 22:08:49 +02:00
{ system ? builtins.currentSystem
, src ? ./.
,
}:
let
inherit (lock.nodes.flake-compat.locked)
owner
repo
rev
narHash
;
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
flake-compat = fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
sha256 = narHash;
};
flake = import flake-compat { inherit src system; };
in
flake.defaultNix