mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
to-html: 0.1.4 -> 0.1.6 (#360178)
This commit is contained in:
commit
861edbc3ba
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user