-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathflake.nix
54 lines (47 loc) · 1.07 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "Test-runner for Nix";
inputs = {
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
std = {
url = "github:divnix/std";
inputs.nixpkgs.follows = "nixpkgs";
};
std-data-collection = {
url = "github:divnix/std-data-collection";
inputs = {
nixpkgs.follows = "nixpkgs";
std.follows = "std";
};
};
};
outputs = {
std,
self,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./nix;
cellBlocks = with std.blockTypes; [
# repo
(devshells "devshells")
(nixago "configs")
(data "tests")
# app
(installables "packages")
# lib
(functions "nixt")
(functions "types")
];
}
{
packages = std.harvest self ["app" "packages"];
devShells = std.harvest self ["repo" "devshells"];
lib = std.pick self ["lib" "nixt"];
__nixt = std.pick self ["lib" "tests"];
};
}