nixpkgs/pkgs/applications/misc/ttyper/default.nix
2024-02-11 03:19:15 +01:00

25 lines
695 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "ttyper";
version = "1.4.1";
src = fetchFromGitHub {
owner = "max-niederman";
repo = pname;
rev = "v${version}";
hash = "sha256-IvAx65b2rGsMdDUhRxTx8cyqnG7oxC+MseCFIJil1e0=";
};
cargoHash = "sha256-o3J2bEAV5NnWKFadJdSGTqUS8K2qpBKPQz6xAbfLtg4=";
meta = with lib; {
description = "Terminal-based typing test";
homepage = "https://github.com/max-niederman/ttyper";
changelog = "https://github.com/max-niederman/ttyper/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda max-niederman ];
mainProgram = "ttyper";
};
}