about summary refs log tree commit diff
path: root/pkgs/development/tools/continuous-integration/buildkite-test-collector-rust/default.nix
blob: bae57ea74d79e526479f7146a74233182f743a9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
, Security
}:

rustPlatform.buildRustPackage rec {
  pname = "buildkite-test-collector-rust";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "buildkite";
    repo = "test-collector-rust";
    rev = "v${version}";
    sha256 = "sha256-rY/+AwxO0+xcnRj0A8TRhCUJQ0ecosybI6It1mDOdQM=";
  };

  buildInputs = lib.optionals stdenv.isDarwin [
    Security
  ];

  cargoSha256 = "sha256-qfJ0ROi0S0mmPl6kKrW3dp3VLjYqK+sBVj+iKDNTjyM=";

  meta = with lib; {
    description = "Rust adapter for Buildkite Test Analytics";
    mainProgram = "buildkite-test-collector";
    homepage = "https://buildkite.com/test-analytics";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ jfroche ];
  };
}