2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPecl,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
let
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.1.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
in
|
|
|
|
buildPecl rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "opentelemetry";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "open-telemetry";
|
|
|
|
repo = "opentelemetry-php-instrumentation";
|
|
|
|
rev = version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-X3rGzKDI16W21O9BaCuvVCreuce6is+URFSa1FNcznM=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${src.name}/ext";
|
|
|
|
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-parentheses-equality";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/open-telemetry/opentelemetry-php-instrumentation/releases/tag/${version}";
|
|
|
|
description = "OpenTelemetry PHP auto-instrumentation extension";
|
|
|
|
homepage = "https://opentelemetry.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ gaelreyrol ];
|
|
|
|
};
|
|
|
|
}
|