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:
parent
554ada78db
commit
da0b044b92
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue