about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/highlight-assertions/default.nix
blob: 8d2aabe4bf5c6aa24d864b8a9a2e434ab125cb41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "highlight-assertions";
  version = "unstable-2022-11-24";

  src = fetchFromGitHub {
    owner = "thehamsta";
    repo = pname;
    rev = "c738a51513285ded4fc16d68afcdb77761543f92";
    sha256 = "sha256-vYXr0xFwRUwSEP++834A/4M1QB14Wx+qWwB9PUtn3uA=";
  };

  cargoSha256 = "sha256-sezjd7tmVVDoRsrsTK2zKjHmrBcAQDHyHd/dR1q1za0=";

  # requires nightly features
  RUSTC_BOOTSTRAP = 1;

  meta = with lib; {
    description = "A tool for unit testing tree sitter highlights for nvim-treesitter";
    homepage = "https://github.com/thehamsta/highlight-assertions";
    license = licenses.asl20;
    maintainers = with maintainers; [ figsoda ];
  };
}