phpExtensions.datadog_trace: fix builds on Linux

This commit is contained in:
Pol Dellaiera 2023-07-12 16:59:24 +02:00
parent 8ebe29d315
commit 676380cddb
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -35,11 +35,18 @@ buildPecl rec {
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 [
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