2024-11-23 16:10:18 +00:00
|
|
|
# https://discourse.nixos.org/t/how-to-create-a-development-environment-with-intellij-idea-and-openjdk/10153
|
|
|
|
{
|
|
|
|
pkgs ? import <nixpkgs> {
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/166220#issuecomment-1745803058
|
|
|
|
config.allowUnfree = true;
|
|
|
|
}
|
|
|
|
}:
|
|
|
|
(
|
|
|
|
pkgs.buildFHSUserEnv
|
|
|
|
{
|
|
|
|
name = "foo";
|
2024-11-23 16:26:45 +00:00
|
|
|
targetPkgs = pkgs_:
|
2024-11-23 16:10:18 +00:00
|
|
|
[
|
2024-11-23 16:26:45 +00:00
|
|
|
pkgs_.jetbrains.idea-ultimate
|
2024-11-23 16:10:18 +00:00
|
|
|
|
|
|
|
# Gradle 8.7 is configured for JDK 21
|
2024-11-23 16:26:45 +00:00
|
|
|
pkgs_.jdk
|
|
|
|
pkgs_.gradle
|
2024-11-23 16:10:18 +00:00
|
|
|
|
|
|
|
];
|
|
|
|
}
|
|
|
|
).env
|