mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 09:53:46 +01:00
11 lines
310 B
Nix
11 lines
310 B
Nix
# A wrapper around jdtls that provides the correct Java version
|
|
|
|
{ pkgs, ... }:
|
|
{
|
|
output.packages.jdtls-wrapped = pkgs.writeShellScriptBin "jdtls" ''
|
|
export PATH="$PATH:${pkgs.jre17_minimal}/bin"
|
|
export JAVA_HOME="${pkgs.jre17_minimal}"
|
|
|
|
exec "${pkgs.jdt-language-server}/bin/jdtls" "$@"
|
|
'';
|
|
}
|