23 lines
622 B
Nix
23 lines
622 B
Nix
let
|
|
lockFile = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
nixpkgs = builtins.fetchTarball {
|
|
url = "";
|
|
sha256 = lockFile.nodes.nixpkgs.locked.narHash;
|
|
};
|
|
lix = builtins.fetchTarball {
|
|
url = "";
|
|
sha256 = lockFile.nodes.lix.locked.narHash;
|
|
};
|
|
lix-module = builtins.fetchTarball {
|
|
url = "";
|
|
sha256 = lockFile.nodes.lix-module.locked.narHash;
|
|
};
|
|
in
|
|
{ overlays ? [], ... } @ args:
|
|
import "${nixpkgs}" {
|
|
overlays = [
|
|
(import ./overlay.nix)
|
|
(import "${lix-module}/overlay.nix" { inherit lix; })
|
|
] ++ overlays;
|
|
} // (builtins.removeAttrs args [ "overlays" ])
|