2023-02-09 11:40:11 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, timer }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "timer";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.4.1";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caarlos0";
|
|
|
|
repo = "timer";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-8BVzijAXsJ8Q8BhDmhzFbEQ23fUEBdmbUsCPxfpXyBA=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-1n5vZKlOWoB2SFdDdv+pPWLybzCIJG/wdBYqLMatjNA=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = timer; };
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "`sleep` with progress";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/caarlos0/timer";
|
|
|
|
license = licenses.mit;
|
2023-03-27 19:17:25 +00:00
|
|
|
maintainers = with maintainers; [ zowoq caarlos0 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "timer";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|