Merge pull request #283559 from britter/patch-1

jdt-language-server: Call installlPhase hooks
This commit is contained in:
kirillrdy 2024-01-26 10:33:52 +09:00 committed by GitHub
commit 15633e5097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;