blob: 908127575e7a46eeaabbfccbaf10b4e1738469d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ 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";
};
}
|