2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPecl,
|
|
|
|
cargo,
|
|
|
|
rustc,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
curl,
|
|
|
|
pcre2,
|
|
|
|
libiconv,
|
|
|
|
darwin,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
buildPecl rec {
|
2023-08-22 20:05:09 +00:00
|
|
|
pname = "ddtrace";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.97.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;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Kx2HaWvRT+mFIs0LAAptx6nm9DQ83QEuyHNcEPEr7A4=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-11-16 04:20:00 +00:00
|
|
|
"datadog-profiling-5.0.0" = "sha256-/Z1vGpAHpU5EO80NXnzyAHN4s3iyA1jOquBS8MH1nOo=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-O2";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
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
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
curl
|
|
|
|
pcre2
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreFoundation
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = with lib.licenses; [
|
|
|
|
asl20
|
|
|
|
bsd3
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = lib.teams.php.members;
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|