nixpkgs/pkgs/by-name/te/television/package.nix
2025-04-23 11:47:38 +02:00

49 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
testers,
television,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "television";
version = "0.11.9";
src = fetchFromGitHub {
owner = "alexpasmantier";
repo = "television";
tag = finalAttrs.version;
hash = "sha256-9ug3MFBAvdOpA7Cw5eqCjS2gWK0InqlfUAOItE0o40s=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-n417hrDLpBD7LhtHfqHPgr9N+gkdC9nw+iDnNRcTqQQ=";
passthru = {
tests.version = testers.testVersion {
package = television;
command = "XDG_DATA_HOME=$TMPDIR tv --version";
};
updateScript = nix-update-script { };
};
meta = {
description = "Blazingly fast general purpose fuzzy finder TUI";
longDescription = ''
Television is a fast and versatile fuzzy finder TUI.
It lets you quickly search through any kind of data source (files, git
repositories, environment variables, docker images, you name it) using a
fuzzy matching algorithm and is designed to be easily extensible.
'';
homepage = "https://github.com/alexpasmantier/television";
changelog = "https://github.com/alexpasmantier/television/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "tv";
maintainers = with lib.maintainers; [
louis-thevenet
getchoo
];
};
})