evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ti / timer / package.nix
blob5b91a765d2c7175f0fdff83cf9787fc66ec5002c
1 { lib, buildGoModule, fetchFromGitHub, testers, timer }:
3 buildGoModule rec {
4   pname = "timer";
5   version = "1.4.5";
7   src = fetchFromGitHub {
8     owner = "caarlos0";
9     repo = "timer";
10     rev = "v${version}";
11     hash = "sha256-nHQPTinrSXMeZeiZC16drliFf0ib9+gjxJr9oViZqOc=";
12   };
14   vendorHash = "sha256-mE/C4S2gqcFGfnmCeMS/VpQwXHrI8SXos0M1+rV3hPo=";
16   ldflags = [ "-s" "-w" "-X main.version=${version}" ];
18   passthru.tests.version = testers.testVersion { package = timer; };
20   meta = with lib; {
21     description = "`sleep` with progress";
22     homepage = "https://github.com/caarlos0/timer";
23     license = licenses.mit;
24     maintainers = with maintainers; [ zowoq caarlos0 ];
25     mainProgram = "timer";
26   };