Compare commits
1 commit
main
...
kak-tree-s
Author | SHA1 | Date | |
---|---|---|---|
75a1ec99a3 |
|
@ -7,4 +7,5 @@
|
||||||
cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
|
cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
|
||||||
lipsum = pkgs.callPackage ./lipsum.nix { inherit inputs; };
|
lipsum = pkgs.callPackage ./lipsum.nix { inherit inputs; };
|
||||||
emmet-cli = pkgs.callPackage ./emmet-cli.nix { };
|
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