flakes/java/flake.nix

27 lines
607 B
Nix
Raw Normal View History

2023-09-28 19:08:58 +02:00
{
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; [
2024-10-13 17:21:48 +02:00
jdk8
2023-09-28 19:08:58 +02:00
openjdk17
# You might want to use your own IDE.
2024-10-13 17:21:48 +02:00
# (jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ])
2023-09-28 19:08:58 +02:00
];
};
});
}