victoriatraces: init at 0.2.0

+63
+63
pkgs/by-name/vi/victoriatraces/package.nix
··· 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 + nix-update-script, 6 + nixosTests, 7 + withServer ? true, 8 + withVtInsert ? false, 9 + withVtSelect ? false, 10 + withVtStorage ? false, 11 + withVtGen ? false, 12 + }: 13 + 14 + buildGoModule (finalAttrs: { 15 + pname = "VictoriaTraces"; 16 + version = "0.2.0"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "VictoriaMetrics"; 20 + repo = "VictoriaTraces"; 21 + tag = "v${finalAttrs.version}"; 22 + hash = "sha256-b4/ix191xtW2HpczfRbez2gibgGx7jBRm0hvuP/rTpA="; 23 + }; 24 + 25 + vendorHash = null; 26 + 27 + subPackages = 28 + lib.optionals withServer [ "app/victoria-traces" ] 29 + ++ lib.optionals withVtInsert [ "app/vtinsert" ] 30 + ++ lib.optionals withVtSelect [ "app/vtselect" ] 31 + ++ lib.optionals withVtStorage [ "app/vtstorage" ] 32 + ++ lib.optionals withVtGen [ "app/vtgen" ]; 33 + 34 + postPatch = '' 35 + # Allow older go versions 36 + substituteInPlace go.mod \ 37 + --replace-fail "go 1.24.6" "go ${finalAttrs.passthru.go.version}" 38 + ''; 39 + 40 + ldflags = [ 41 + "-s" 42 + "-w" 43 + "-X github.com/VictoriaMetrics/VictoriaTraces/lib/buildinfo.Version=${finalAttrs.version}" 44 + ]; 45 + 46 + __darwinAllowLocalNetworking = true; 47 + 48 + passthru = { 49 + tests = { 50 + inherit (nixosTests) victoriatraces; 51 + }; 52 + updateScript = nix-update-script { }; 53 + }; 54 + 55 + meta = { 56 + homepage = "https://docs.victoriametrics.com/victoriatraces/"; 57 + description = "Fast open-source observability solution for distributed traces"; 58 + license = lib.licenses.asl20; 59 + maintainers = with lib.maintainers; [ cmacrae ]; 60 + changelog = "https://github.com/VictoriaMetrics/VictoriaTraces/releases/tag/${finalAttrs.src.tag}"; 61 + mainProgram = "victoria-traces"; 62 + }; 63 + })