about summary refs log tree commit diff
path: root/default.nix
blob: a6ac944191673660914af37a15addbf94387dd9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ system ? builtins.currentSystem, ... }@args:

with (import (import ./nixpkgs-path.nix) { inherit system; }).lib;

{
  machines = let
    getBuild = const (getAttr "build");
    allMachines = import ./machines { inherit system; };
  in mapAttrsRecursiveCond (m: !(m ? eval)) getBuild allMachines;

  pkgs = import ./pkgs {
    pkgs = import (import ./nixpkgs-path.nix) args;
  };

  # Inherit upstream lib until we have our own lib.
  lib = import "${import ./nixpkgs-path.nix}/lib";
}