add shell.nix
This commit is contained in:
parent
a150ed4958
commit
c5d4d2d059
27
jabref/shell.nix
Normal file
27
jabref/shell.nix
Normal file
@ -0,0 +1,27 @@
|
||||
# Gradle's toolchain support does not work with IntelliJ, thus we have to use buildFHSUserEnv
|
||||
|
||||
# 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;
|
||||
}
|
||||
}:
|
||||
|
||||
let
|
||||
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz) { };
|
||||
jdk = unstable.jdk23;
|
||||
gradle = unstable.gradle;
|
||||
in
|
||||
|
||||
(
|
||||
pkgs.buildFHSUserEnv
|
||||
{
|
||||
name = "intellij-gradle-jdk23";
|
||||
targetPkgs = pkgs_: [
|
||||
pkgs_.jetbrains.idea-ultimate
|
||||
jdk
|
||||
gradle
|
||||
];
|
||||
}
|
||||
).env
|
Loading…
x
Reference in New Issue
Block a user