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