about summary refs log tree commit diff stats
path: root/pkgs/go-instrument/default.nix
blob: 950032fbf4df654d1006b8373b05bd7955feb61d (plain)
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
28
29
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "go-instrument";
  version = "1.7.0";

  src = fetchFromGitHub {
    owner = "nikolaydubina";
    repo = "go-instrument";
    rev = "v${version}";
    hash = "sha256-0WoID8hYtAu4EJbEgvHtJtE5keq33aGDMjFU9B+MLh8=";
  };

  vendorHash = "sha256-dofJA3Xxf68r4nKv6ocAYgnvOZD8eeezkaXLOqlRI6k=";

  ldflags = [ "-s" "-w" ];

  meta = {
    description = "Automatically add Trace Spans to Go methods and functions";
    homepage = "https://github.com/nikolaydubina/go-instrument";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ alanpearce ];
    mainProgram = "go-instrument";
  };
}