Commit b82c7123 authored by Yiyu Zhou's avatar Yiyu Zhou Committed by Yiyu Zhou
Browse files

ttypr: init at 0.3.6

parent eb23430d
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})