Merge pull request #145886 from luhuaei/master

This commit is contained in:
Sandro 2021-11-30 20:45:31 +01:00 committed by GitHub
commit 34549377c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ lib, stdenv, fetchurl, unzip, openjdk11, gradle }:
stdenv.mkDerivation rec {
pname = "kotlin-language-server";
version = "1.1.2";
src = fetchurl {
url = "https://github.com/fwcd/kotlin-language-server/releases/download/${version}/server.zip";
sha256 = "d8850ee2be8c49e5e642c4a41f52304098ae0bcce009e4d91531a9aeecd64916";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/lib
mkdir -p $out/bin
cp -r lib/* $out/lib
cp -r bin/* $out/bin
'';
nativeBuildInputs = [ unzip gradle ];
buildInputs = [ openjdk11 gradle ];
meta = {
description = "kotlin language server";
longDescription = ''
About Kotlin code completion, linting and more for any editor/IDE
using the Language Server Protocol Topics'';
homepage = "https://github.com/fwcd/kotlin-language-server";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}

View file

@ -12476,6 +12476,8 @@ with pkgs;
kotlin = callPackage ../development/compilers/kotlin { };
kotlin-native = callPackage ../development/compilers/kotlin/native.nix { };
kotlin-language-server = callPackage ../development/tools/kotlin-language-server {};
lazarus = callPackage ../development/compilers/fpc/lazarus.nix {
fpc = fpc;
};