Compare commits

...

1 commit

Author SHA1 Message Date
Leonardo Eugênio 75a1ec99a3 WIP: Add kak-tree-sitter 2024-06-05 01:30:03 -03:00
2 changed files with 34 additions and 0 deletions

View file

@ -7,4 +7,5 @@
cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
lipsum = pkgs.callPackage ./lipsum.nix { inherit inputs; };
emmet-cli = pkgs.callPackage ./emmet-cli.nix { };
kak-tree-sitter = pkgs.callPackage ./kak-tree-sitter.nix { };
}

33
pkgs/kak-tree-sitter.nix Normal file
View file

@ -0,0 +1,33 @@
{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "kak-tree-sitter";
version = "0.5.4";
src = fetchFromGitHub {
owner = "hadronized";
repo = pname;
rev = "${pname}-v${version}";
hash = "sha256-ZJQE3Xx1Vo7G3uLP9eiZV6Gdsiij1WL/NqkUKSm7I/o=";
};
cargoHash = "sha256-IwdO+PNPLd0j6gwLzA5ojeGT9o/w9dswIQRGR6DbeAE=";
GIT_HEAD = version;
prePatch = ''
rm kak-tree-sitter/build.rs
rm ktsctl/build.rs
'';
cargoBuildFlags = [ "--package" pname ];
dontPatchELF = true;
meta = with lib; {
description = "A server that interfaces tree-sitter with kakoune";
homepage = "https://github.com/hadronized/kak-tree-sitter";
license = with licenses; [ mit ];
};
}