Add Java Flake

This commit is contained in:
Tibo De Peuter 2023-09-28 19:08:58 +02:00
parent 7f731d6a02
commit 336f7a11d4
2 changed files with 86 additions and 0 deletions

25
java/flake.nix Normal file
View file

@ -0,0 +1,25 @@
{
description = "Java Flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
( system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
openjdk17
# You might want to use your own IDE.
jetbrains.idea-ultimate
];
};
});
}