kcl-language-server: init 0.11.2 (#401491)

This commit is contained in:
Ulrik Strid 2025-05-12 18:16:19 +02:00 committed by GitHub
commit cff5695f60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,53 @@
{
fetchFromGitHub,
kcl,
lib,
pkg-config,
protobuf,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "kcl-language-server";
version = "0.11.2";
src = fetchFromGitHub {
owner = "kcl-lang";
repo = "kcl";
rev = "v${version}";
hash = "sha256-6XDLxTpgENhP7F51kicAJB7BNMtX4cONKJApAhqgdno=";
};
sourceRoot = "${src.name}/kclvm";
cargoHash = "sha256-eJ3Gh2l6T2DxJRQRHamPOr/ILtzsqFB497DdXVJ90RE=";
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
buildAndTestSubdir = "tools/src/LSP";
buildPhaseCargoFlags = [
"--profile"
"release"
"--offline"
];
nativeBuildInputs = [
pkg-config
protobuf
];
doCheck = false;
meta = {
changelog = "https://github.com/kcl-lang/kcl/releases/tag/v${version}";
description = "A high-performance implementation of KCL written in Rust that uses LLVM as the compiler backend";
downloadPage = "https://github.com/kcl-lang/kcl/tree/v${version}/kclvm/tools/src/LSP";
homepage = "https://www.kcl-lang.io/";
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
maintainers = kcl.meta.maintainers;
mainProgram = "kcl-language-server";
};
}