Files
nixpkgs/pkgs/by-name/to/to-html/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
installShellFiles,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
version = "0.1.6";
pname = "to-html";
src = fetchFromGitHub {
owner = "Aloso";
repo = "to-html";
rev = "v${version}";
hash = "sha256-eNFt9/yK4oHOspNM8PMTewhx8APaHzmgNdrWqrUuQSU=";
};
cargoHash = "sha256-EeR0nzTKQ4fB/tXuPIWokSNBQIthGpxSySsASo74A/A=";
# 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";
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 ];
};
}