WIP: Add kak-tree-sitter
This commit is contained in:
parent
6bddfa4120
commit
c85c9eea85
|
@ -5,4 +5,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
33
pkgs/kak-tree-sitter.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue