btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / tt / ttyper / package.nix
blobaec5b9f083004e776699670d4ac5c64f03d50b98
1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "ttyper";
5   version = "1.6.0";
7   src = fetchFromGitHub {
8     owner = "max-niederman";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-g4OD4Mc3KHN9rrzM+9JvN2xTnSojGQy6yptdGj3zgW4=";
12   };
14   cargoHash = "sha256-EXBs73651lP2B/1lAGHLcc9F1Xi+Bj6+c9wv2uX56Lg=";
16   meta = with lib; {
17     description = "Terminal-based typing test";
18     homepage = "https://github.com/max-niederman/ttyper";
19     changelog = "https://github.com/max-niederman/ttyper/releases/tag/${src.rev}";
20     license = licenses.mit;
21     maintainers = with maintainers; [ figsoda max-niederman ];
22     mainProgram = "ttyper";
23   };