-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
29 lines (26 loc) · 743 Bytes
/
flake.nix
File metadata and controls
29 lines (26 loc) · 743 Bytes
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
{
# TODO: Test if this even works.
# TODO: Swap this out for simpler nix shell?
description = "Java Spring dev flake for CI536";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }: {
devShells.x86_64-linux.default = let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
pkgs.mkShell {
buildInputs = with pkgs; [
gcc
jdk21
maven
spring-boot-cli
];
shellHook = ''
echo ""
echo "Java version: $(java -version 2>&1 | head -n 1)"
echo "Maven version: $(mvn -version | head -n 1)"
echo "Spring Boot CLI: $(spring --version)"
echo ""
'';
};
};
}