Files
nixpkgs/pkgs/by-name/to/toolong/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

49 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
testers,
toolong,
}:
python3Packages.buildPythonApplication {
pname = "toolong";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Textualize";
repo = "toolong";
rev = "5aa22ee878026f46d4d265905c4e1df4d37842ae"; # no tag
hash = "sha256-HrmU7HxWKYrbV25Y5CHLw7/7tX8Y5mTsTL1aXGGTSIo=";
};
build-system = [ python3Packages.poetry-core ];
dependencies = with python3Packages; [
click
textual
typing-extensions
];
pythonRelaxDeps = [ "textual" ];
pythonImportsCheck = [ "toolong" ];
doCheck = false; # no tests
# From https://github.com/Textualize/toolong/pull/63, also fixes https://github.com/NixOS/nixpkgs/issues/360671
patches = [ ./0001-log-view.patch ];
passthru.tests.version = testers.testVersion {
package = toolong;
command = "${lib.getExe toolong} --version";
};
meta = with lib; {
description = "Terminal application to view, tail, merge, and search log files (plus JSONL)";
license = licenses.mit;
homepage = "https://github.com/textualize/toolong";
maintainers = with maintainers; [ sigmanificient ];
mainProgram = "tl";
};
}