jdt-language-server: Call installlPhase hooks

This makes it easier to customize the derivation via overrides.
This commit is contained in:
Benedikt Ritter 2024-01-24 19:33:55 +01:00
parent 2047e2ce33
commit f788080e04
No known key found for this signature in database
GPG key ID: 394546A47BB40E12

View file

@ -41,11 +41,15 @@ stdenv.mkDerivation (finalAttrs: {
configDir = if stdenv.isDarwin then "config_mac" else "config_linux";
in
''
runHook preInstall
install -Dm444 -t $out/share/java/jdtls/plugins/ plugins/*
install -Dm444 -t $out/share/java/jdtls/features/ features/*
install -Dm444 -t $out/share/java/jdtls/${configDir} ${configDir}/*
install -Dm555 -t $out/bin bin/jdtls
install -Dm444 -t $out/bin bin/jdtls.py
runHook postInstall
'';
passthru.updateScript = ./update.sh;