Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "highlight-assertions"; 5 version = "0.1.7"; 6 7 src = fetchFromGitHub { 8 owner = "thehamsta"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-7r8tBJ6JFGUGUsTivzlO23hHiXISajjn2WF12mmbmMg="; 12 }; 13 14 cargoHash = "sha256-E2TNwCry7JOWy50+iLM9d+Tx4lIO6hkBtaHVLV8bDuo="; 15 16 # requires nightly features 17 RUSTC_BOOTSTRAP = 1; 18 19 meta = with lib; { 20 description = "Tool for unit testing tree sitter highlights for nvim-treesitter"; 21 mainProgram = "highlight-assertions"; 22 homepage = "https://github.com/thehamsta/highlight-assertions"; 23 license = licenses.asl20; 24 maintainers = with maintainers; [ figsoda ]; 25 }; 26}