nixpkgs/pkgs/tools/misc/timer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
720 B
Nix
Raw Normal View History

2023-02-02 04:12:15 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, timer }:
buildGoModule rec {
pname = "timer";
2023-10-21 01:54:55 +00:00
version = "1.4.1";
2023-02-02 04:12:15 +00:00
src = fetchFromGitHub {
owner = "caarlos0";
repo = "timer";
rev = "v${version}";
2023-10-21 01:54:55 +00:00
hash = "sha256-8BVzijAXsJ8Q8BhDmhzFbEQ23fUEBdmbUsCPxfpXyBA=";
2023-02-02 04:12:15 +00:00
};
2023-10-21 01:54:55 +00:00
vendorHash = "sha256-1n5vZKlOWoB2SFdDdv+pPWLybzCIJG/wdBYqLMatjNA=";
2023-02-02 04:12:15 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
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;
maintainers = with maintainers; [ zowoq caarlos0 ];
2023-11-27 01:17:53 +00:00
mainProgram = "timer";
2023-02-02 04:12:15 +00:00
};
}