dragnpkgs/default.nix

23 lines
602 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
args:
import "${nixpkgs}" {
overlays = [
(import ./overlay.nix)
(import "${lix-module}/overlay.nix" { inherit lix; })
] ++ args.overlays;
} // (builtins.removeAttrs args [ "overlays" ])