forked from divnix/std
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dogfood.nix
43 lines (41 loc) · 1.09 KB
/
dogfood.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
36
37
38
39
40
41
42
43
inputs: let
inherit (inputs) incl std;
inherit (inputs.paisano) pick harvest;
in
std.growOn {
inherit inputs;
cellsFrom = incl ./src ["local" "tests"];
cellBlocks = with std.blockTypes; [
## For local use in the Standard repository
# local
(devshells "shells" {ci.build = true;})
(nixago "configs")
(containers "containers")
(namaka "checks" {ci.check = true;})
];
}
{
devShells = harvest inputs.self ["local" "shells"];
checks = harvest inputs.self ["tests" "checks" "snapshots" "check"];
}
(std.grow {
inherit inputs;
cellsFrom = incl ./src ["std" "lib" "data"];
cellBlocks = with std.blockTypes; [
## For downstream use
# std
(runnables "cli" {ci.build = true;})
(functions "devshellProfiles")
(functions "errors")
(data "templates")
# lib
(functions "dev")
(functions "ops")
(anything "cfg")
(nixago "configs")
];
})
{
packages = harvest inputs.self [["std" "cli"] ["std" "packages"]];
templates = pick inputs.self ["std" "templates"];
}