depot/third_party/nixpkgs/pkgs/tools/misc/timer/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

27 lines
720 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testers, timer }:
buildGoModule rec {
pname = "timer";
version = "1.4.1";
src = fetchFromGitHub {
owner = "caarlos0";
repo = "timer";
rev = "v${version}";
hash = "sha256-8BVzijAXsJ8Q8BhDmhzFbEQ23fUEBdmbUsCPxfpXyBA=";
};
vendorHash = "sha256-1n5vZKlOWoB2SFdDdv+pPWLybzCIJG/wdBYqLMatjNA=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests.version = testers.testVersion { package = timer; };
meta = with lib; {
description = "A `sleep` with progress";
homepage = "https://github.com/caarlos0/timer";
license = licenses.mit;
maintainers = with maintainers; [ zowoq caarlos0 ];
mainProgram = "timer";
};
}