-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
61 lines (56 loc) · 1.47 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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
{
self,
nixpkgs,
treefmt-nix,
}:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
stdenv = pkgs.stdenv;
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
{
# Run treefmt. See `./treefmt.nix`.
formatter.x86_64-linux = treefmtEval.config.build.wrapper;
templates = {
flake-basic = {
path = ./flake-basic;
description = "Nix flake basic template.";
};
c-cli = {
path = ./c-cli;
description = "Basic C project template.";
};
c-raylib-cmake = {
path = ./c-raylib-cmake;
description = "Raylib project build with cmake.";
};
deno-hono = {
path = ./deno-hono;
description = "Hono project with Deno.";
};
haxe-basic-cpp = {
path = ./haxe-basic-cpp;
description = "Haxe project with cpp target.";
};
honox-minimal = {
path = ./honox-minimal;
description = "Minimal HonoX project.";
};
odin-hello = {
path = ./odin-hello;
description = "Minimal Odin project.";
};
cl-nix = {
path = ./cl-nix;
description = "Common Lisp with Nix";
};
};
};
}