blob: 9db04332d537a6668894ad4dad8283feac59506c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
fetchTree = import ./nix/fetchTree.nix;
flakeSources = builtins.mapAttrs (_: node: fetchTree node.locked) lock.nodes;
in
{
nixpkgs ?
import sources.nixpkgs {
inherit system;
config = {};
overlays = [];
},
system ? builtins.currentSystem,
sources ? flakeSources,
}: let
pkgs' = import ./overlay.nix (nixpkgs // pkgs') nixpkgs;
in
pkgs'
|