Add Java Flake
This commit is contained in:
parent
7f731d6a02
commit
336f7a11d4
2 changed files with 86 additions and 0 deletions
25
java/flake.nix
Normal file
25
java/flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue