to-html: 0.1.4 -> 0.1.6 (#360178)

This commit is contained in:
Franz Pletz 2024-12-04 11:16:24 +01:00 committed by GitHub
commit 861edbc3ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,24 +1,33 @@
{ lib
, fetchFromGitHub
, installShellFiles
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
version = "0.1.4";
version = "0.1.6";
pname = "to-html";
src = fetchFromGitHub {
owner = "Aloso";
repo = "to-html";
rev = "v${version}";
hash = "sha256-zkTBjsMFhRz7lVRh8i+XkaJ/qWmTAMPnkH5aDhbHf8U=";
hash = "sha256-eNFt9/yK4oHOspNM8PMTewhx8APaHzmgNdrWqrUuQSU=";
};
cargoHash = "sha256-hXc+lB3DKnRZkp1U5wW/vPKSZ0c1UknQCAxDfE7Eubg=";
cargoHash = "sha256-UxDyk7m6eWvuWPHWUY2OJI59p43/bag8pcZyeGJr/QA=";
# Requires external resources
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion \
$releaseDir/build/to-html-*/out/to-html.{bash,fish} \
--zsh $releaseDir/build/to-html-*/out/_to-html
'';
meta = {
description = "Terminal wrapper for rendering a terminal on a website by converting ANSI escape sequences to HTML";
mainProgram = "to-html";