tangled
alpha
login
or
join now
yemou.pink
/
seed
1
fork
atom
Collection of nix flake templates
1
fork
atom
overview
issues
pulls
pipelines
c: add template
yemou.pink
2 months ago
c461bc5e
06058625
verified
This commit was signed with the committer's
known signature
.
yemou.pink
SSH Key Fingerprint:
SHA256:B3KWd18q2i8Y9ru3QeipeB/2RQMOtCYNtA2gVHr0obU=
+20
-1
2 changed files
expand all
collapse all
unified
split
c
flake.nix
flake.nix
+19
c/flake.nix
···
1
1
+
{
2
2
+
description = "TODO: Describe the flake";
3
3
+
4
4
+
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
5
5
+
6
6
+
outputs =
7
7
+
{ self, nixpkgs }:
8
8
+
let
9
9
+
systems = [ "x86_64-linux" ];
10
10
+
forSystems = func: nixpkgs.lib.genAttrs systems (system: func (import nixpkgs { inherit system; }));
11
11
+
in
12
12
+
{
13
13
+
formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; });
14
14
+
15
15
+
devShells = forSystems (pkgs: {
16
16
+
default = pkgs.mkShell { buildInputs = with pkgs; [ clang-tools ]; };
17
17
+
});
18
18
+
};
19
19
+
}
+1
-1
flake.nix
···
16
16
description = "generic nix flake";
17
17
};
18
18
}
19
19
-
// nixpkgs.lib.genAttrs [ "erlang" "go" "java" "python" ] (language: {
19
19
+
// nixpkgs.lib.genAttrs [ "c" "erlang" "go" "java" "python" ] (language: {
20
20
path = ./${language};
21
21
description = "${language} nix flake";
22
22
});