nixpkgs/pkgs/by-name/ts/ts_query_ls/package.nix
Riley Bruins c9a3c08a8a ts_query_ls: init at 1.0.1
Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
2024-12-01 08:51:43 -08:00

36 lines
849 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
cmake,
}:
let
pname = "ts_query_ls";
version = "1.0.1";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "ribru17";
repo = "ts_query_ls";
rev = "v${version}";
hash = "sha256-jhlFFNzGP9SNw4G2arGPQzQ7KQ4duCse/CQoK9lWaPk=";
};
nativeBuildInputs = [ cmake ];
doCheck = false; # no tests
useFetchCargoVendor = true;
cargoHash = "sha256-CgX8lPOX3ZvoSD4SuKR8MTpKvLrhIbzrXqlKrvY0xzE=";
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}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ribru17 ];
mainProgram = "ts_query_ls";
};
}