From 279bedb9e04a3bb5660dfd80af6903fd23f68f28 Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 22 Dec 2022 19:12:04 -0500 Subject: [PATCH] highlight-assertions: init at unstable-2022-11-24 --- .../misc/highlight-assertions/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/tools/misc/highlight-assertions/default.nix diff --git a/pkgs/development/tools/misc/highlight-assertions/default.nix b/pkgs/development/tools/misc/highlight-assertions/default.nix new file mode 100644 index 000000000000..8d2aabe4bf5c --- /dev/null +++ b/pkgs/development/tools/misc/highlight-assertions/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aed4f4b75471..e83ad6f84798 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17475,6 +17475,8 @@ with pkgs; heroku = callPackage ../development/tools/heroku { }; + highlight-assertions = callPackage ../development/tools/misc/highlight-assertions { }; + ccloud-cli = callPackage ../development/tools/ccloud-cli { }; confluent-cli = callPackage ../development/tools/confluent-cli { };