2025-08-06 18:48:52 +00:00

35 lines
981 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "tidy-viewer";
version = "1.6.0";
src = fetchFromGitHub {
owner = "alexhallam";
repo = "tv";
rev = version;
sha256 = "sha256-ZiwZS7fww1dphEhJsScFfu1sBs35CB9LsGnI3qsyvrk=";
};
cargoHash = "sha256-Cd3yNqDZcvaO8H9IwSOvZ+HGQ85fubbBYztOCgy60ls=";
# this test parses command line arguments
# error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
checkFlags = [
"--skip=build_reader_can_create_reader_without_file_specified"
];
meta = {
description = "Cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment";
mainProgram = "tidy-viewer";
homepage = "https://github.com/alexhallam/tv";
changelog = "https://github.com/alexhallam/tv/blob/${version}/CHANGELOG.md";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ figsoda ];
};
}