Merge pull request #242166 from NixOS/php/extensions/bump-datadog-trace

phpExtensions.datadog_trace: 0.82.0 -> 0.89.0
This commit is contained in:
Pol Dellaiera 2023-07-10 15:56:41 +02:00 committed by GitHub
commit 39eccf4331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3056 additions and 10 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,58 @@
{ buildPecl, curl, fetchFromGitHub, lib, pcre2, php }:
{ lib
, stdenv
, php
, cargo
, rustc
, fetchFromGitHub
, rustPlatform
, curl
, pcre2
, libiconv
, CoreFoundation
, Security
, Libsystem
}:
buildPecl rec {
pname = "ddtrace";
version = "0.82.0";
php.buildPecl rec {
pname = "datadog_trace";
version = "0.89.0";
src = fetchFromGitHub {
owner = "DataDog";
repo = "dd-trace-php";
rev = version;
sha256 = "sha256-QTqZRHh57mRkg0HT9qQS13emGobB0IRqM+mdImAPgtE=";
fetchSubmodules = true;
hash = "sha256-wTGQV80XQsBdmTQ+xaBKtFwLO3S+//9Yli9aReXDlLA=";
};
buildInputs = [ curl pcre2 ];
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"datadog-profiling-2.2.0" = "sha256-PWzC+E2u0hM0HhU0mgZJZvFomEJdQag/3ZK1FibSLG8=";
};
};
meta = with lib; {
env.NIX_CFLAGS_COMPILE = "-O2";
nativeBuildInputs = [
cargo
rustc
rustPlatform.bindgenHook
rustPlatform.cargoSetupHook
];
buildInputs = [ curl pcre2 ] ++ lib.optionals stdenv.isDarwin [
CoreFoundation
Security
Libsystem
libiconv
];
meta = {
changelog = "https://github.com/DataDog/dd-trace-php/blob/${src.rev}/CHANGELOG.md";
description = "Datadog Tracing PHP Client";
homepage = "https://github.com/DataDog/dd-trace-php";
license = with licenses; [ asl20 /* or */ bsd3 ];
maintainers = teams.php.members;
license = with lib.licenses; [ asl20 /* or */ bsd3 ];
maintainers = lib.teams.php.members;
};
}

View File

@ -222,7 +222,10 @@ lib.makeScope pkgs.newScope (self: with self; {
couchbase = callPackage ../development/php-packages/couchbase { };
datadog_trace = callPackage ../development/php-packages/datadog_trace { };
datadog_trace = pkgs.darwin.apple_sdk_11_0.callPackage ../development/php-packages/datadog_trace {
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security CoreFoundation;
inherit (pkgs.darwin.apple_sdk_11_0) Libsystem;
};
ds = callPackage ../development/php-packages/ds { };