mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
tt: init at v0.4.2
This commit is contained in:
parent
785b5ad545
commit
5a92bab5eb
1 changed files with 35 additions and 0 deletions
35
pkgs/by-name/tt/tt/package.nix
Normal file
35
pkgs/by-name/tt/tt/package.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "tt";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lemnos";
|
||||
repo = "tt";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-vKh19xYBeNqvVFilvA7NeQ34RM5VnwDs+Hu/pe3J0y4=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-edY2CcZXOIed0+7IA8kr4lAfuSJx/nHtmc734XzT4z4=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/src $out/bin/tt
|
||||
installManPage tt.1.gz
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Typing test in the terminal written in Go";
|
||||
homepage = "https://github.com/lemnos/tt";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "tt";
|
||||
maintainers = with lib.maintainers; [ vinetos ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue