Skip to content

Commit

Permalink
php.buildPecl: add stdenv argument
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 9, 2023
1 parent 1a87fd5 commit 401a424
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pkgs/build-support/build-pecl.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, php, autoreconfHook, fetchurl, re2c, nix-update-script }:
{ stdenv, lib, php, autoreconfHook, fetchurl, re2c, nix-update-script }@imports:

{ pname
, version
Expand All @@ -13,6 +13,7 @@
inherit (args) sha256;
}
, passthru ? { }
, stdenv ? imports.stdenv
, ...
}@args:

Expand Down
13 changes: 7 additions & 6 deletions pkgs/development/php-packages/datadog_trace/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{ lib
, php
, stdenv
, php
, cargo
, rustc
, fetchFromGitHub
, rustPlatform
, curl
, pcre2
, libiconv
, CoreFoundation
, Security
}:
, darwin
}@attrs:

php.buildPecl rec {
stdenv = if attrs.stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else attrs.stdenv;

pname = "datadog_trace";
version = "0.89.0";

Expand Down Expand Up @@ -41,8 +42,8 @@ php.buildPecl rec {
];

buildInputs = [ curl pcre2 libiconv ] ++ lib.optionals stdenv.isDarwin [
CoreFoundation
Security
darwin.apple_sdk_11_0.frameworks.CoreFoundation
darwin.apple_sdk_11_0.frameworks.Security
];

meta = {
Expand Down

0 comments on commit 401a424

Please sign in to comment.