Skip to content

Commit

Permalink
to-html: init at 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Jul 30, 2023
1 parent fc66814 commit d0d2424
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/tools/text/to-html/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0d2424

Please sign in to comment.