nixpkgs/pkgs/by-name/te/television/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-19 07:23:09 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
testers,
television,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "television";
2024-11-22 14:12:07 +00:00
version = "0.5.1";
2024-11-19 07:23:09 +00:00
src = fetchFromGitHub {
owner = "alexpasmantier";
repo = "television";
rev = "refs/tags/" + version;
2024-11-22 14:12:07 +00:00
hash = "sha256-mbf39AcW7MYu0A6D7poX6TChJccqweBvUbzJ1Ib+ABI=";
2024-11-19 07:23:09 +00:00
};
2024-11-22 14:12:07 +00:00
cargoHash = "sha256-aWEqPIAcq5ZWCf0ZOYnswmj2dR0+41D1HMna0TAhxcE=";
2024-11-19 07:23:09 +00:00
passthru = {
tests.version = testers.testVersion {
package = television;
command = "XDG_DATA_HOME=$TMPDIR tv --version";
};
updateScript = nix-update-script { };
};
meta = {
description = "Television is a blazingly fast general purpose fuzzy finder";
longDescription = ''
Television is a blazingly fast general purpose fuzzy finder TUI written
in Rust. It is inspired by the neovim telescope plugin and is designed
to be fast, efficient, simple to use and easily extensible. It is built
on top of tokio, ratatui and the nucleo matcher used by the helix editor.
'';
homepage = "https://github.com/alexpasmantier/television";
changelog = "https://github.com/alexpasmantier/television/releases/tag/${version}";
license = lib.licenses.mit;
mainProgram = "tv";
maintainers = with lib.maintainers; [
louis-thevenet
getchoo
];
};
}