Merge pull request #308015 from Sail0rd/create-tt

tt: init at v0.4.2

authored by OTABI Tomoya and committed by GitHub dd4070b4 6cc09019

+35
+35
pkgs/by-name/tt/tt/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + buildGoModule, 5 + installShellFiles, 6 + }: 7 + 8 + buildGoModule rec { 9 + pname = "tt"; 10 + version = "0.4.2"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "lemnos"; 14 + repo = "tt"; 15 + rev = "v${version}"; 16 + hash = "sha256-vKh19xYBeNqvVFilvA7NeQ34RM5VnwDs+Hu/pe3J0y4="; 17 + }; 18 + 19 + vendorHash = "sha256-edY2CcZXOIed0+7IA8kr4lAfuSJx/nHtmc734XzT4z4="; 20 + 21 + nativeBuildInputs = [ installShellFiles ]; 22 + 23 + postInstall = '' 24 + mv $out/bin/src $out/bin/tt 25 + installManPage tt.1.gz 26 + ''; 27 + 28 + meta = { 29 + description = "Typing test in the terminal written in Go"; 30 + homepage = "https://github.com/lemnos/tt"; 31 + license = lib.licenses.mit; 32 + mainProgram = "tt"; 33 + maintainers = with lib.maintainers; [ vinetos ]; 34 + }; 35 + }