Skip to content

Commit a161f25

Browse files
flake: add binary templates
1 parent 8cc4aeb commit a161f25

File tree

2 files changed

+48
-15
lines changed

2 files changed

+48
-15
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# dt
2-
Dev Tools
32

4-
## Usage
3+
Dev Tools.
4+
5+
## Template
6+
7+
Provide a template to setup a project in a specified programming language.
8+
9+
```sh
10+
nix flake init -t github:minizilla/dt#{programming-language}
11+
```
12+
13+
## Bin
14+
15+
Provide a binary to work with a specified programming language.
16+
This is useful when working with a non-Nix Flake project.
517

618
```sh
7-
nix flake init -t github:minizilla/dt#{templateName}
19+
nix flake init -t github:minizilla/dt#bin-{programming-language}
820
```

flake.nix

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,50 @@
2929
);
3030

3131
templates = {
32+
elm = {
33+
path = ./template/elm;
34+
description = "Setup Elm Project";
35+
};
36+
gleam = {
37+
path = ./template/gleam;
38+
description = "Setup Gleam Project";
39+
};
40+
gleam-fullstack = {
41+
path = ./template/gleam-fullstack;
42+
description = "Setup Gleam Fullstack Project";
43+
};
3244
go = {
3345
path = ./template/go;
3446
description = "Setup Go Project";
3547
};
48+
java = {
49+
path = ./template/java;
50+
description = "Setup Java Project";
51+
};
3652
zig = {
3753
path = ./template/zig;
3854
description = "Setup Zig Project";
3955
};
40-
java = {
41-
path = ./template/java;
42-
description = "Setup Java Project";
56+
57+
bin-elm = {
58+
path = ./bin/elm;
59+
description = "Install Elm Binary";
4360
};
44-
gleam = {
45-
path = ./template/gleam;
46-
description = "Setup Gleam Project";
61+
bin-gleam = {
62+
path = ./bin/gleam;
63+
description = "Install Gleam Binary";
4764
};
48-
gleam-fullstack = {
49-
path = ./template/gleam-fullstack;
50-
description = "Setup Gleam Fullstack Project";
65+
bin-go = {
66+
path = ./bin/go;
67+
description = "Install Go Binary";
5168
};
52-
elm = {
53-
path = ./template/elm;
54-
description = "Setup Elm Project";
69+
bin-java = {
70+
path = ./bin/java;
71+
description = "Install Java Binary";
72+
};
73+
bin-zig = {
74+
path = ./bin/zig;
75+
description = "Install Zig Binary";
5576
};
5677
};
5778
};

0 commit comments

Comments
 (0)