From 3b8ecf7659aa9ff626579ae9cbcaca1d0877c895 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 26 Aug 2024 19:09:20 +0200 Subject: [PATCH] vimcats: init at 1.0.2 --- pkgs/by-name/vi/vimcats/package.nix | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/vi/vimcats/package.nix diff --git a/pkgs/by-name/vi/vimcats/package.nix b/pkgs/by-name/vi/vimcats/package.nix new file mode 100644 index 000000000000..60be4b64a402 --- /dev/null +++ b/pkgs/by-name/vi/vimcats/package.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + testers, + vimcats, +}: + +rustPlatform.buildRustPackage rec { + pname = "vimcats"; + version = "1.0.2"; + + src = fetchFromGitHub { + owner = "mrcjkb"; + repo = "vimcats"; + rev = "v${version}"; + sha256 = "sha256-YZPLZgC0v5zw/+X3r0G1MZ+46c0K8J3ClFQYH5BqbUE="; + }; + + buildFeatures = [ "cli" ]; + + cargoHash = "sha256-gxCsB8lx9gTEsWV3uCX2TKTzxCUZ9JHo+1+voU7gKhY="; + + passthru.tests.version = testers.testVersion { package = vimcats; }; + + meta = with lib; { + description = "A CLI to generate vim/nvim help doc from LuaCATS. Forked from lemmy-help"; + longDescription = '' + `vimcats` is a LuaCATS parser as well as a CLI which takes that parsed tree and converts it into vim help docs. + It is a fork of lemmy-help that aims to support more recent LuaCATS features. + ''; + homepage = "https://github.com/mrcjkb/vimcats"; + changelog = "https://github.com/mrcjkb/vimcats/CHANGELOG.md"; + license = with licenses; [ gpl2Plus ]; + maintainers = with maintainers; [ mrcjkb ]; + mainProgram = "vimcats"; + }; +}