-
Notifications
You must be signed in to change notification settings - Fork 8
/
flake.nix
65 lines (58 loc) · 1.74 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
55
56
57
58
59
60
61
62
63
64
65
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nix-filter.url = "github:/numtide/nix-filter";
# TOOD: use the locked prefetch version, will be removed by replacing with nix-prefetch-url
nixpkgs-lock.url = "github:NixOS/nixpkgs/0cfb3c002b61807ca0bab3efe514476bdf2e5478";
};
inputs = {
std-ext.url = "github:gtrunsec/std-ext";
std.follows = "std-ext/std";
std-data-collection.follows = "std-ext/std-data-collection";
};
outputs = {
self,
std,
...
} @ inputs:
(std.growOn {
inherit inputs;
cellsFrom = ./nix;
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
cellBlocks = with std.blockTypes; [
(installables "packages")
(nixago "nixago")
(runnables "entrypoints")
(devshells "devshells")
(functions "devshellProfiles")
(functions "lib")
(functions "workflow")
(functions "overlays")
(functions "compiler")
(data "containerJobs")
];
}
{
lib = std.harvest inputs.self ["julia2nix" "lib"];
devShells = std.harvest inputs.self ["julia2nix" "devshells"];
overlays = (std.harvest inputs.self ["julia2nix" "overlays"]).x86_64-linux;
packages = std.harvest inputs.self ["julia2nix" "packages"];
})
{
templates = {
devshell = {
description = "The devshell template which contains several Julia Packages";
path = ./templates/dev;
};
jlrs = {
description = "The tempalte which contains jlrs development of Nix";
path = ./templates/jlrs;
};
};
};
}