-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
131 lines (110 loc) · 2.52 KB
/
flake.nix
File metadata and controls
131 lines (110 loc) · 2.52 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
description = "Flaky templates";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs =
{ self, nixpkgs }:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: lib.genAttrs systems f;
in
{
devShells = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
default = pkgs.mkShell {
packages = with pkgs; [
statix
deadnix
nixfmt-tree
];
shellHook = ''
echo "Nix Shell:"
echo "statix: $(statix --version)"
echo "deadnix: $(deadnix --version)"
echo "nixfmt-tree: $(treefmt --version)"
echo "nix: $(nix --version)"
'';
};
}
);
templates = {
kotlin = {
path = ./kotlin;
description = "Kotlin Shell (JDK 21)";
};
haskell = {
path = ./haskell;
description = "Haskell Shell (GHC 9.6)";
};
rust = {
path = ./rust;
description = "Rust Shell";
};
java = {
path = ./java;
description = "Java Shell (JDK 21)";
};
go = {
path = ./go;
description = "Go Shell";
};
ocaml = {
path = ./ocaml;
description = "OCaml Shell";
};
web = {
path = ./web;
description = "Web Shell (Node 22)";
};
tex = {
path = ./tex;
description = "TeX Shell";
};
ghidra = {
path = ./ghidra;
description = "Ghidra Shell";
};
root = {
path = ./root;
description = "CERN ROOT Shell";
};
android = {
path = ./android;
description = "Android Shell";
};
sage = {
path = ./sage;
description = "Sage Shell";
};
c = {
path = ./c;
description = "C/C++ Shell";
};
redis = {
path = ./redis;
description = "Redis Shell";
};
pg = {
path = ./pg;
description = "Postgres Shell";
};
nix = {
path = ./nix;
description = "Nix Shell";
};
};
};
}