nix-home/packages/common/kak-tree-sitter.nix

21 lines
650 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, symlinkJoin, clang, git, ... }:
let
src = fetchFromGitHub {
owner = "phaazon";
repo = "kak-tree-sitter";
2024-03-01 11:03:01 +00:00
rev = "61cce127ca03e3c969df1ff46f41074a3c69be31";
hash = "sha256-wcgc1L6Y6obLTIonWLJzNK72fWW8oJ0yMEfGotCg5b8=";
};
kak-tree-sitter = rustPlatform.buildRustPackage rec {
inherit src;
pname = "kak-tree-sitter";
2024-03-01 11:03:01 +00:00
version = "0.5.5-${lib.substring 0 6 src.rev}";
cargoHash = "sha256-Ozzcn4k+1Q+50zxCy9Flvv8vZKNcAesrHT/izVAgn54=";
2023-09-29 15:48:01 +00:00
cargoBuildOptions = [ "--package" "kak-tree-sitter" "--package" "ktsctl" ];
2023-09-29 15:48:01 +00:00
nativeBuildInputs = [ clang git ];
};
in
2023-09-29 15:48:01 +00:00
kak-tree-sitter