File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
pkgs/by-name/kc/kcl-language-server Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ fetchFromGitHub ,
3+ kcl ,
4+ lib ,
5+ pkg-config ,
6+ protobuf ,
7+ rustPlatform ,
8+ } :
9+
10+ rustPlatform . buildRustPackage rec {
11+ pname = "kcl-language-server" ;
12+ version = "0.11.2" ;
13+
14+ src = fetchFromGitHub {
15+ owner = "kcl-lang" ;
16+ repo = "kcl" ;
17+ rev = "v${ version } " ;
18+ hash = "sha256-6XDLxTpgENhP7F51kicAJB7BNMtX4cONKJApAhqgdno=" ;
19+ } ;
20+
21+ sourceRoot = "${ src . name } /kclvm" ;
22+
23+ cargoHash = "sha256-eJ3Gh2l6T2DxJRQRHamPOr/ILtzsqFB497DdXVJ90RE=" ;
24+
25+ PROTOC = "${ protobuf } /bin/protoc" ;
26+ PROTOC_INCLUDE = "${ protobuf } /include" ;
27+
28+ buildAndTestSubdir = "tools/src/LSP" ;
29+
30+ buildPhaseCargoFlags = [
31+ "--profile"
32+ "release"
33+ "--offline"
34+ ] ;
35+
36+ nativeBuildInputs = [
37+ pkg-config
38+ protobuf
39+ ] ;
40+
41+ doCheck = false ;
42+
43+ meta = {
44+ changelog = "https://github.com/kcl-lang/kcl/releases/tag/v${ version } " ;
45+ description = "A high-performance implementation of KCL written in Rust that uses LLVM as the compiler backend" ;
46+ downloadPage = "https://github.com/kcl-lang/kcl/tree/v${ version } /kclvm/tools/src/LSP" ;
47+ homepage = "https://www.kcl-lang.io/" ;
48+ license = lib . licenses . asl20 ;
49+ platforms = lib . platforms . linux ;
50+ maintainers = kcl . meta . maintainers ;
51+ mainProgram = "kcl-language-server" ;
52+ } ;
53+ }
You can’t perform that action at this time.
0 commit comments