Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.6 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
nixosTests,
withServer ? true,
withVtInsert ? false,
withVtSelect ? false,
withVtStorage ? false,
withVtGen ? false,
}:
buildGoModule (finalAttrs: {
pname = "VictoriaTraces";
version = "0.2.0";
src = fetchFromGitHub {
owner = "VictoriaMetrics";
repo = "VictoriaTraces";
tag = "v${finalAttrs.version}";
hash = "sha256-b4/ix191xtW2HpczfRbez2gibgGx7jBRm0hvuP/rTpA=";
};
vendorHash = null;
subPackages =
lib.optionals withServer [ "app/victoria-traces" ]
++ lib.optionals withVtInsert [ "app/vtinsert" ]
++ lib.optionals withVtSelect [ "app/vtselect" ]
++ lib.optionals withVtStorage [ "app/vtstorage" ]
++ lib.optionals withVtGen [ "app/vtgen" ];
postPatch = ''
# Allow older go versions
substituteInPlace go.mod \
--replace-fail "go 1.24.6" "go ${finalAttrs.passthru.go.version}"
'';
ldflags = [
"-s"
"-w"
"-X github.com/VictoriaMetrics/VictoriaTraces/lib/buildinfo.Version=${finalAttrs.version}"
];
__darwinAllowLocalNetworking = true;
passthru = {
tests = {
inherit (nixosTests) victoriatraces;
};
updateScript = nix-update-script { };
};
meta = {
homepage = "https://docs.victoriametrics.com/victoriatraces/";
description = "Fast open-source observability solution for distributed traces";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ cmacrae ];
changelog = "https://github.com/VictoriaMetrics/VictoriaTraces/releases/tag/${finalAttrs.src.tag}";
mainProgram = "victoria-traces";
};
})