-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
47 lines (41 loc) · 1.19 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
{
inputs = {
paisano = {
url = "github:divnix/paisano";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nix-community/nixpkgs.lib";
};
outputs = { paisano, self, ... }@inputs:
paisano.growOn
{
inherit inputs;
systems = [ "x86_64-linux" "aarch64-linux" ];
cellsFrom = ./cells;
cellBlocks = [
{
name = "fooblock";
type = "experiment";
}
{
name = "barblock";
type = "experiment";
}
];
}
{
product = {
cell = paisano.harvest self [ "cell" ];
block = paisano.harvest self [ "cell" "fooblock" ];
foo = paisano.harvest self [ "cell" "fooblock" "foo" ];
bar = paisano.harvest self [ "cell" "fooblock" "bar" ];
cellPicked = paisano.pick self [ "cell" ];
winnow = paisano.winnow
(field: value: field != "baz" && value !=
null)
self [ "cell" "fooblock" ];
};
};
# find . -name "*.nix" | entr -c -s 'nix eval .#product | alejandra --quiet'
# find . -name "*.nix" | entr -c -s 'nix eval .#product --json | jq'
}