From b82c712327022c12f27034370e08fd25a5b99883 Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Tue, 29 Jul 2025 16:50:09 -0700 Subject: [PATCH] ttypr: init at 0.3.6 --- pkgs/by-name/tt/ttypr/package.nix | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/tt/ttypr/package.nix diff --git a/pkgs/by-name/tt/ttypr/package.nix b/pkgs/by-name/tt/ttypr/package.nix new file mode 100644 index 000000000000..6a9c0c002d8f --- /dev/null +++ b/pkgs/by-name/tt/ttypr/package.nix @@ -0,0 +1,35 @@ +{ + fetchFromGitHub, + lib, + nix-update-script, + rustPlatform, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "ttypr"; + version = "0.3.6"; + + src = fetchFromGitHub { + owner = "tanciaku"; + repo = "ttypr"; + tag = "v${finalAttrs.version}"; + hash = "sha256-y6FXkNfd+4Nkus+Z6Ah2AJX9iWeXQnIDeKmuLFUZDdQ="; + }; + + cargoHash = "sha256-bmwvirAbjzD5NJDHJgbPhnNqTdfo8CWJ2JWgFEBz+2Y="; + + passthru.updateScript = nix-update-script { }; + + meta = { + changelog = "https://github.com/tanciaku/ttypr/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + description = "Terminal typing practice"; + longDescription = '' + ttypr is a simple, lightweight typing practice application that + runs in your terminal, built with Rust and Ratatui. + ''; + homepage = "https://github.com/hotellogical05/ttypr"; + license = lib.licenses.mit; + mainProgram = "ttypr"; + maintainers = with lib.maintainers; [ yiyu ]; + }; +})