From d0d2424bc04ff8af1cbdb4128735ac078b6c3e53 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 15 Mar 2023 20:04:22 +0100 Subject: [PATCH] to-html: init at 0.1.4 --- pkgs/tools/text/to-html/default.nix | 30 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/text/to-html/default.nix diff --git a/pkgs/tools/text/to-html/default.nix b/pkgs/tools/text/to-html/default.nix new file mode 100644 index 000000000000..0b49fd8be2b1 --- /dev/null +++ b/pkgs/tools/text/to-html/default.nix @@ -0,0 +1,30 @@ +{ lib +, fetchFromGitHub +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + version = "0.1.4"; + pname = "to-html"; + + src = fetchFromGitHub { + owner = "Aloso"; + repo = "to-html"; + rev = "v${version}"; + hash = "sha256-zkTBjsMFhRz7lVRh8i+XkaJ/qWmTAMPnkH5aDhbHf8U="; + }; + + cargoHash = "sha256-hXc+lB3DKnRZkp1U5wW/vPKSZ0c1UknQCAxDfE7Eubg="; + + # Requires external resources + doCheck = false; + + meta = { + description = "Terminal wrapper for rendering a terminal on a website by converting ANSI escape sequences to HTML."; + homepage = "https://github.com/Aloso/to-html"; + changelog = "https://github.com/Aloso/to-html/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ icewind1991 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7ef9a60908ad..ecae4e4bdb92 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13422,6 +13422,8 @@ with pkgs; tncattach = callPackage ../applications/radio/tncattach { }; + to-html = callPackage ../tools/text/to-html { }; + toilet = callPackage ../tools/misc/toilet { }; tokei = callPackage ../development/tools/misc/tokei {