base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / we / weaver / package.nix
blob7734b0d6f585eac0b72b6fe19f1b482ec8c1f375
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6   darwin,
7   testers,
8   weaver,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "weaver";
13   version = "0.10.0";
15   src = fetchFromGitHub {
16     owner = "open-telemetry";
17     repo = "weaver";
18     rev = "v${version}";
19     hash = "sha256-hSoMt+4D1bpENBD9NmuVBLDUOJkau5Sk2OHS5RyDRYQ=";
20   };
22   cargoHash = "sha256-4rHDulSsFvKly5M5bo1AtEAl280N/hxhznTngCxw36Y=";
24   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
25     with darwin.apple_sdk_11_0.frameworks; [ SystemConfiguration ]
26   );
28   checkFlags = [
29     # Skip tests requiring network
30     "--skip=test_cli_interface"
31   ];
33   passthru.tests.version = testers.testVersion {
34     package = weaver;
35   };
37   meta = {
38     description = "OpenTelemetry tool for dealing with semantic conventions and application telemetry schemas";
39     homepage = "https://github.com/open-telemetry/weaver";
40     license = lib.licenses.asl20;
41     maintainers = with lib.maintainers; [ aaronjheng ];
42     mainProgram = "weaver";
43   };