1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

lemminx: use minimal jre

This commit is contained in:
Sandro Jäckel 2024-07-16 00:17:39 +02:00
parent 554ada78db
commit da0b044b92
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -2,11 +2,22 @@
, fetchFromGitHub
, makeWrapper
, jre_headless
, jre_minimal
, maven
, writeScript
, lemminx
}:
let
jre = jre_minimal.override {
modules = [
"java.base"
"java.logging"
"java.xml"
];
jdk = jre_headless;
};
in
maven.buildMavenPackage rec {
pname = "lemminx";
version = "0.27.0";
@ -67,7 +78,7 @@ maven.buildMavenPackage rec {
install -Dm644 org.eclipse.lemminx/target/org.eclipse.lemminx-uber.jar \
$out/share
makeWrapper ${jre_headless}/bin/java $out/bin/lemminx \
makeWrapper ${jre}/bin/java $out/bin/lemminx \
--add-flags "-jar $out/share/org.eclipse.lemminx-uber.jar"
runHook postInstall