From bff703de2a7c3611c7b00ef15b3d0fb8bd6e5708 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 21 Aug 2023 15:34:40 -0400 Subject: [PATCH] rhai-doc: init at 0.2.3 https://github.com/rhaiscript/rhai-doc --- .../tools/misc/rhai-doc/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/tools/misc/rhai-doc/default.nix diff --git a/pkgs/development/tools/misc/rhai-doc/default.nix b/pkgs/development/tools/misc/rhai-doc/default.nix new file mode 100644 index 000000000000..dd07b8df9926 --- /dev/null +++ b/pkgs/development/tools/misc/rhai-doc/default.nix @@ -0,0 +1,27 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "rhai-doc"; + version = "0.2.3"; + + src = fetchFromGitHub { + owner = "rhaiscript"; + repo = "rhai-doc"; + rev = "v${version}"; + hash = "sha256-GZq5C8Q95OHKftEkps4Y6X6sAc4pzSfSq3ELUW/kPWI="; + }; + + cargoHash = "sha256-dJMqaDQVSrvZPwjPFixgqRRzxPJW/f1nO+81kHwGmYU="; + + meta = with lib; { + description = "Tool to auto-generate documentation for Rhai source code"; + homepage = "https://github.com/rhaiscript/rhai-doc"; + changelog = "https://github.com/rhaiscript/rhai-doc/releases/tag/${src.rev}"; + license = with licenses; [ asl20 mit ]; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "rhai-doc"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51315795c270..947a8592dc9f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12484,6 +12484,8 @@ with pkgs; rekor-cli rekor-server; + rhai-doc = callPackage ../development/tools/misc/rhai-doc { }; + rich-cli = callPackage ../misc/rich-cli { }; richgo = callPackage ../development/tools/richgo { };