diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-07-12 16:59:24 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-07-12 17:01:58 +0200 |
commit | 676380cddb88d1f47ef2aa4cf28425ba1162fba7 (patch) | |
tree | bfe93bd6e95f7cdf2588640c5973bd0821835f54 | |
parent | 8ebe29d31572d6361f7b43d1f6956b2b4bc98af1 (diff) |
phpExtensions.datadog_trace: fix builds on Linux
-rw-r--r-- | pkgs/development/php-packages/datadog_trace/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/php-packages/datadog_trace/default.nix b/pkgs/development/php-packages/datadog_trace/default.nix index c7f39424008ac..98280a8dab316 100644 --- a/pkgs/development/php-packages/datadog_trace/default.nix +++ b/pkgs/development/php-packages/datadog_trace/default.nix @@ -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 |