Provide NixOS module option to enable the paperless exporter. (#242084)
[NixPkgs.git] / pkgs / by-name / ti / timer / package.nix
blobc5b78c80b3f02c130fc406764c121af5deb0c73b
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   testers,
6   timer,
7 }:
9 buildGoModule rec {
10   pname = "timer";
11   version = "1.4.5";
13   src = fetchFromGitHub {
14     owner = "caarlos0";
15     repo = "timer";
16     rev = "v${version}";
17     hash = "sha256-nHQPTinrSXMeZeiZC16drliFf0ib9+gjxJr9oViZqOc=";
18   };
20   vendorHash = "sha256-mE/C4S2gqcFGfnmCeMS/VpQwXHrI8SXos0M1+rV3hPo=";
22   ldflags = [
23     "-s"
24     "-w"
25     "-X main.version=${version}"
26   ];
28   passthru.tests.version = testers.testVersion { package = timer; };
30   meta = with lib; {
31     description = "`sleep` with progress";
32     homepage = "https://github.com/caarlos0/timer";
33     license = licenses.mit;
34     maintainers = with maintainers; [
35       zowoq
36       caarlos0
37     ];
38     mainProgram = "timer";
39   };