forked from divnix/std
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
35 lines (35 loc) · 1.46 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-FileCopyrightText: 2022 The Standard Authors
# SPDX-FileCopyrightText: 2022 Kevin Amado <[email protected]>
#
# SPDX-License-Identifier: Unlicense
{
description = "The Nix Flakes framework for perfectionists with deadlines";
# override downstream with inputs.std.inputs.nixpkgs.follows = ...
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.yants.url = "github:divnix/yants";
inputs.yants.inputs.nixpkgs.follows = "nixpkgs";
/*
Auxiliar inputs used in builtin libraries or for the dev environment.
*/
inputs = {
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
kroki-preprocessor.url = "github:input-output-hk/mdbook-kroki-preprocessor";
};
outputs = inputs: let
clades = import ./src/clades.nix {inherit (inputs) nixpkgs;};
incl = import ./src/incl.nix {inherit (inputs) nixpkgs;};
deSystemize = import ./src/de-systemize.nix;
grow = import ./src/grow.nix {inherit (inputs) nixpkgs yants;};
growOn = import ./src/grow-on.nix {inherit (inputs) nixpkgs yants;};
harvest = import ./src/harvest.nix {inherit (inputs) nixpkgs;};
l = inputs.nixpkgs.lib // builtins;
in
{
inherit (clades) runnables installables functions data devshells containers files microvms;
inherit grow growOn deSystemize incl harvest;
systems = l.systems.doubles;
}
# on our own account ...
// (import ./dogfood.nix {inherit inputs growOn clades harvest;});
}