Merge pull request #284519 from ck3d/lemminx-jre-headless

lemminx: halve the closure size with headless jre
This commit is contained in:
Christian Kögler 2024-02-03 22:45:24 +01:00 committed by GitHub
commit add041d3b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
{ lib
, fetchFromGitHub
, makeWrapper
, jre
, jre_headless
, maven
, writeScript
, lemminx
@ -67,7 +67,7 @@ maven.buildMavenPackage rec {
install -Dm644 org.eclipse.lemminx/target/org.eclipse.lemminx-uber.jar \
$out/share
makeWrapper ${jre}/bin/java $out/bin/lemminx \
makeWrapper ${jre_headless}/bin/java $out/bin/lemminx \
--add-flags "-jar $out/share/org.eclipse.lemminx-uber.jar"
runHook postInstall