weaver: init at 0.9.2

This commit is contained in:
Aaron Jheng 2024-09-10 02:27:32 +00:00
parent 6abda61b06
commit e3f5b04c90
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -0,0 +1,44 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
darwin,
testers,
weaver,
}:
rustPlatform.buildRustPackage rec {
pname = "weaver";
version = "0.9.2";
src = fetchFromGitHub {
owner = "open-telemetry";
repo = "weaver";
rev = "v${version}";
hash = "sha256-HKVUi/XJsvgj+UnhJRa2PkGlfJHNdz8M/re9vYMu1LM=";
};
cargoHash = "sha256-p6NQm4Paq1nDMxmaf3BcZF3V7k6Ifw93BC0InKUjgBk=";
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk_11_0.frameworks; [ SystemConfiguration ]
);
checkFlags = [
# Skip tests requiring network
"--skip=test_cli_interface"
];
passthru.tests.version = testers.testVersion {
package = weaver;
};
meta = {
description = "OpenTelemetry tool for dealing with semantic conventions and application telemetry schemas";
homepage = "https://github.com/open-telemetry/weaver";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "weaver";
};
}