dragnpkgs/default.nix

23 lines
617 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" ])