1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8buildGoModule rec {
9 pname = "ets";
10 version = "0.3.1";
11
12 src = fetchFromGitHub {
13 owner = "gdubicki";
14 repo = "ets";
15 rev = "v${version}";
16 hash = "sha256-LnNd4rAMJliWKbL4uVl11BAa9FPUcLwVSWnFe1vEk7g=";
17 };
18
19 vendorHash = "sha256-lzukgI/7gxlWHY81MkK1CzpUUaZ4B+4xZ0RSZUpL62c=";
20
21 ldflags = [
22 "-s"
23 "-w"
24 "-X main.version=v${version}-nixpkgs"
25 ];
26
27 nativeBuildInputs = [ installShellFiles ];
28
29 preBuild = ''
30 rm -rf fixtures
31 '';
32
33 postInstall = ''
34 installManPage ets.1
35 '';
36
37 doCheck = false;
38
39 meta = with lib; {
40 description = "Command output timestamper";
41 homepage = "https://github.com/gdubicki/ets/";
42 license = licenses.mit;
43 maintainers = with maintainers; [ cameronfyfe ];
44 mainProgram = "ets";
45 };
46}