50 lines
1008 B
Nix
50 lines
1008 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "tempo";
|
|
version = "2.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grafana";
|
|
repo = "tempo";
|
|
tag = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-mROhsqbCwPulxtg3pHVZi8FmW9PrYzGPdE0ajVvzRBY=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [
|
|
"cmd/tempo-cli"
|
|
"cmd/tempo-query"
|
|
"cmd/tempo-vulture"
|
|
"cmd/tempo"
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.Version=${finalAttrs.version}"
|
|
"-X=main.Branch=<release>"
|
|
"-X=main.Revision=${finalAttrs.version}"
|
|
];
|
|
|
|
# tests use docker
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "High volume, minimal dependency trace storage";
|
|
changelog = "https://github.com/grafana/tempo/releases/tag/v${finalAttrs.version}";
|
|
license = licenses.asl20;
|
|
homepage = "https://grafana.com/oss/tempo/";
|
|
maintainers = [ ];
|
|
};
|
|
})
|