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