2023-02-02 04:12:15 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, timer }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "timer";
|
2023-04-11 18:03:13 +00:00
|
|
|
version = "1.3.0";
|
2023-02-02 04:12:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caarlos0";
|
|
|
|
repo = "timer";
|
2023-04-11 18:03:13 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-9p/L3Hj3VqlNiyY3lfUAhCjwTl1iSTegWxaVEGB4qHM=";
|
2023-02-02 04:12:15 +00:00
|
|
|
};
|
|
|
|
|
2023-04-11 18:03:13 +00:00
|
|
|
vendorHash = "sha256-j7Xik0te6GdjfhXHT7DRf+MwM+aKjfgTGvroxnlD3MM=";
|
2023-02-02 04:12:15 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
2023-04-11 18:03:13 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = timer; };
|
2023-02-02 04:12:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A `sleep` with progress";
|
|
|
|
homepage = "https://github.com/caarlos0/timer";
|
|
|
|
license = licenses.mit;
|
2023-03-27 13:48:31 +00:00
|
|
|
maintainers = with maintainers; [ zowoq caarlos0 ];
|
2023-02-02 04:12:15 +00:00
|
|
|
};
|
|
|
|
}
|