biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / typioca / default.nix
blob572735cf74291264750018a608f0b24dd9bc0870
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , typioca
6 }:
8 buildGoModule rec {
9   pname = "typioca";
10   version = "3.1.0";
12   src = fetchFromGitHub {
13     owner = "bloznelis";
14     repo = "typioca";
15     rev = version;
16     hash = "sha256-fViYwewzhJUJjMupCYk1UsnnPAhByYZqYkuKD6MJNnE=";
17   };
19   vendorHash = "sha256-fUkajuviQuQuVgzWAxsInd+c+eNQArKNjiNsi7mCNWU=";
21   ldflags = [
22     "-s"
23     "-w"
24     "-X=github.com/bloznelis/typioca/cmd.Version=${version}"
25   ];
27   passthru.tests = {
28     version = testers.testVersion {
29       package = typioca;
30     };
31   };
33   meta = with lib; {
34     description = "Cozy typing speed tester in terminal";
35     homepage = "https://github.com/bloznelis/typioca";
36     changelog = "https://github.com/bloznelis/typioca/releases/tag/${src.rev}";
37     license = licenses.mit;
38     maintainers = with maintainers; [ figsoda ];
39     mainProgram = "typioca";
40   };