2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPecl
|
|
|
|
, cargo
|
|
|
|
, rustc
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, curl
|
|
|
|
, pcre2
|
|
|
|
, libiconv
|
|
|
|
, darwin
|
|
|
|
}:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
buildPecl rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "datadog_trace";
|
|
|
|
version = "0.89.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DataDog";
|
|
|
|
repo = "dd-trace-php";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
hash = "sha256-wTGQV80XQsBdmTQ+xaBKtFwLO3S+//9Yli9aReXDlLA=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"datadog-profiling-2.2.0" = "sha256-PWzC+E2u0hM0HhU0mgZJZvFomEJdQag/3ZK1FibSLG8=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-O2";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk_11_0.rustPlatform.bindgenHook
|
|
|
|
darwin.apple_sdk_11_0.rustPlatform.cargoSetupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
pcre2
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk_11_0.frameworks.CoreFoundation
|
|
|
|
darwin.apple_sdk_11_0.frameworks.Security
|
|
|
|
darwin.apple_sdk_11_0.Libsystem
|
|
|
|
libiconv
|
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/DataDog/dd-trace-php/blob/${src.rev}/CHANGELOG.md";
|
2022-04-15 01:41:22 +00:00
|
|
|
description = "Datadog Tracing PHP Client";
|
|
|
|
homepage = "https://github.com/DataDog/dd-trace-php";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = with lib.licenses; [ asl20 bsd3 ];
|
|
|
|
maintainers = lib.teams.php.members;
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|