2024-08-09 15:07:56 -03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromSourcehut,
|
|
|
|
makeWrapper,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2024-08-11 02:18:47 -03:00
|
|
|
pname = "kak-tree-sitter";
|
2024-08-09 15:07:56 -03:00
|
|
|
version = "1.1.2";
|
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~hadronized";
|
|
|
|
repo = "kak-tree-sitter";
|
|
|
|
rev = "kak-tree-sitter-v${version}";
|
|
|
|
hash = "sha256-wBWfSyR8LGtug/mCD0bJ4lbdN3trIA/03AnCxZoEOSA=";
|
|
|
|
};
|
|
|
|
|
2024-08-14 00:31:17 -03:00
|
|
|
cargoSha256 = "sha256-OQPUWqJAts8DbFNSsC/CmMCbuZ9TVxRTR05O7oiodKI=";
|
2024-08-09 15:07:56 -03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/ktsctl" \
|
|
|
|
--suffix PATH : ${stdenv.cc}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Server that interfaces tree-sitter with kakoune";
|
|
|
|
homepage = "https://git.sr.ht/~hadronized/kak-tree-sitter";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
};
|
|
|
|
}
|