1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "buildkite-test-collector-rust";
10 version = "0.1.3";
11
12 src = fetchFromGitHub {
13 owner = "buildkite";
14 repo = "test-collector-rust";
15 rev = "v${version}";
16 sha256 = "sha256-PF2TFfzWmHXLgTopzJ04dfnzd3Sc/A6Hduffz2guxmU=";
17 };
18
19 cargoHash = "sha256-jymWM0DCR6jUE1Kyhbx6HHf6YlrGu1THKTyDHaPG+Vs=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = with lib; {
24 description = "Rust adapter for Buildkite Test Analytics";
25 mainProgram = "buildkite-test-collector";
26 homepage = "https://buildkite.com/test-analytics";
27 license = with licenses; [ mit ];
28 maintainers = with maintainers; [ jfroche ];
29 };
30}