1 { lib, stdenv, fetchzip, openjdk, gradle, makeWrapper, maven }:
3 stdenv.mkDerivation rec {
4 pname = "kotlin-language-server";
7 url = "https://github.com/fwcd/kotlin-language-server/releases/download/${version}/server.zip";
8 hash = "sha256-4piXggWK/BXDXrgkvJisaO5nOs72cvU1F47rKy4z+rc=";
20 nativeBuildInputs = [ gradle makeWrapper ];
21 buildInputs = [ openjdk gradle ];
24 wrapProgram "$out/bin/kotlin-language-server" --set JAVA_HOME ${openjdk} --prefix PATH : ${lib.strings.makeBinPath [ openjdk maven ] }
28 description = "kotlin language server";
30 About Kotlin code completion, linting and more for any editor/IDE
31 using the Language Server Protocol Topics'';
32 maintainers = with lib.maintainers; [ vtuan10 ];
33 homepage = "https://github.com/fwcd/kotlin-language-server";
34 changelog = "https://github.com/fwcd/kotlin-language-server/blob/${version}/CHANGELOG.md";
35 license = lib.licenses.mit;
36 platforms = lib.platforms.unix;
37 sourceProvenance = [ lib.sourceTypes.binaryBytecode ];