nixpkgs/pkgs/development/tools/kotlin-language-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
894 B
Nix
Raw Normal View History

2021-11-13 12:04:58 +00:00
{ lib, stdenv, fetchurl, unzip, openjdk11, gradle }:
stdenv.mkDerivation rec {
pname = "kotlin-language-server";
2022-03-19 15:22:32 +00:00
version = "1.3.0";
2021-11-13 12:04:58 +00:00
src = fetchurl {
url = "https://github.com/fwcd/kotlin-language-server/releases/download/${version}/server.zip";
2022-03-19 15:22:32 +00:00
sha256 = "sha256-yyqI+87vtggSeAfb3OEftalknqbTDEQ5gTJwB/EMIlY=";
2021-11-13 12:04:58 +00:00
};
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;
};
}