summary refs log tree commit diff
path: root/default.nix
blob: 39487fabbb9fab8806df24b7dc5fd6e712a9da19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs ? import <nixpkgs> { }, lib ? pkgs.lib }:

pkgs.buildGoModule rec {
  pname = "otelcol-ts";
  version = "0.73.0";

  src = lib.cleanSourceWith {
    filter = lib.cleanSourceFilter;
    src = lib.sourceFilesBySuffices ./. [ ".go" ".mod" ".sum" ];
  };

  vendorSha256 = "sha256-eOJFdx3fEow32uSNYIrfti4ucxEqvKWpoaWf++GOsCQ=";

  ldflags = [ "-X main.version=v${version}" ];
}