From b6eb24fc01ca603bba0781b64496888d83c1e8a0 Mon Sep 17 00:00:00 2001 From: Ashish Kumar <143941235+ashish0kumar@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:29:16 +0530 Subject: [PATCH] typtea: init at 0.1.4 --- pkgs/by-name/ty/typtea/package.nix | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/ty/typtea/package.nix diff --git a/pkgs/by-name/ty/typtea/package.nix b/pkgs/by-name/ty/typtea/package.nix new file mode 100644 index 000000000000..a9c7c1b29a91 --- /dev/null +++ b/pkgs/by-name/ty/typtea/package.nix @@ -0,0 +1,41 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, +}: + +buildGoModule rec { + pname = "typtea"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "ashish0kumar"; + repo = "typtea"; + tag = "v${version}"; + hash = "sha256-JIb7MkqHHlKLTI+SY007RQS4DpmQS1y8SNUsYVevEEk="; + }; + + vendorHash = "sha256-LWY1Tnh4iyNAV7dNjlKdT9IwPJRN25HkEAGSkQIRe9I="; + + ldflags = [ + "-s" + "-w" + "-X github.com/ashish0kumar/typtea/cmd.version=${version}" + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + meta = { + changelog = "https://github.com/ashish0kumar/typtea/releases/tag/v${version}"; + description = "Terminal-based typing speed test with multi-language support"; + homepage = "https://github.com/ashish0kumar/typtea"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ashish0kumar ]; + mainProgram = "typtea"; + platforms = lib.platforms.unix; + }; +}