ts_query_ls: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-07 09:49:10 +01:00
parent 6cbb84b95d
commit f2537eac62
+4 -7
View File
@@ -4,17 +4,14 @@
fetchFromGitHub,
cmake,
}:
let
rustPlatform.buildRustPackage (finalAttrs: {
pname = "ts_query_ls";
version = "3.15.1";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "ribru17";
repo = "ts_query_ls";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-m3jtaVYy/mNhM584asctI9ZUdaHvPr3ULRHYmmyKsLA=";
};
@@ -25,9 +22,9 @@ rustPlatform.buildRustPackage {
meta = {
description = "LSP implementation for Tree-sitter's query files";
homepage = "https://github.com/ribru17/ts_query_ls";
changelog = "https://github.com/ribru17/ts_query_ls/releases/tag/v${version}";
changelog = "https://github.com/ribru17/ts_query_ls/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ribru17 ];
mainProgram = "ts_query_ls";
};
}
})