add shell.nix

This commit is contained in:
Daniel Langbein 2024-12-14 16:28:15 +00:00
parent 433ab1785e
commit 40bbff6039
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

18
ueb08/shell.nix Normal file
View File

@ -0,0 +1,18 @@
{
pkgs ? import <nixpkgs> {
# https://github.com/NixOS/nixpkgs/issues/166220#issuecomment-1745803058
config.allowUnfree = true;
}
}:
(
# Gradle's toolchain support does not work with IntelliJ, thus we have to use buildFHSUserEnv
pkgs.buildFHSUserEnv
{
name = "intellij-gradle-jdk";
targetPkgs = pkgs_: [
pkgs_.jetbrains.idea-ultimate
pkgs_.jdk
pkgs_.gradle
];
}
).env