Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 installShellFiles, 5 rustPlatform, 6}: 7 8rustPlatform.buildRustPackage rec { 9 version = "0.1.6"; 10 pname = "to-html"; 11 12 src = fetchFromGitHub { 13 owner = "Aloso"; 14 repo = "to-html"; 15 rev = "v${version}"; 16 hash = "sha256-eNFt9/yK4oHOspNM8PMTewhx8APaHzmgNdrWqrUuQSU="; 17 }; 18 19 cargoHash = "sha256-EeR0nzTKQ4fB/tXuPIWokSNBQIthGpxSySsASo74A/A="; 20 21 # Requires external resources 22 doCheck = false; 23 24 nativeBuildInputs = [ installShellFiles ]; 25 26 postInstall = '' 27 installShellCompletion \ 28 $releaseDir/build/to-html-*/out/to-html.{bash,fish} \ 29 --zsh $releaseDir/build/to-html-*/out/_to-html 30 ''; 31 32 meta = { 33 description = "Terminal wrapper for rendering a terminal on a website by converting ANSI escape sequences to HTML"; 34 mainProgram = "to-html"; 35 homepage = "https://github.com/Aloso/to-html"; 36 changelog = "https://github.com/Aloso/to-html/blob/${src.rev}/CHANGELOG.md"; 37 license = lib.licenses.mit; 38 platforms = lib.platforms.all; 39 maintainers = with lib.maintainers; [ icewind1991 ]; 40 }; 41}