Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 cmake,
6}:
7let
8 pname = "ts_query_ls";
9 version = "3.10.0";
10in
11rustPlatform.buildRustPackage {
12 inherit pname version;
13
14 src = fetchFromGitHub {
15 owner = "ribru17";
16 repo = "ts_query_ls";
17 rev = "v${version}";
18 hash = "sha256-D8coYFkPOCt7eGeb/Qo4GLqtJNF7kn3gOjF3nUT4+H4=";
19 };
20
21 nativeBuildInputs = [ cmake ];
22
23 cargoHash = "sha256-/HcvW0TIDrzgLUVt7yqy4cZ537rNVWP/qUBphWwyde8=";
24
25 meta = {
26 description = "LSP implementation for Tree-sitter's query files";
27 homepage = "https://github.com/ribru17/ts_query_ls";
28 changelog = "https://github.com/ribru17/ts_query_ls/releases/tag/v${version}";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ ribru17 ];
31 mainProgram = "ts_query_ls";
32 };
33}