diff options
author | Marco Sirabella <marco@sirabella.org> | 2021-05-27 12:13:16 -0400 |
---|---|---|
committer | Marco Sirabella <marco@sirabella.org> | 2021-05-27 12:19:14 -0400 |
commit | 3a66432f2616484c880b6daea2393bf1e9425a33 (patch) | |
tree | c1ecd5697a3d2cf8c8b24509eaa5682030ec144a | |
parent | d8e73279b9e9dda14ba18d03f69c3747ae52a8b7 (diff) | |
download | nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.tar nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.tar.gz nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.tar.bz2 nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.tar.lz nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.tar.xz nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.tar.zst nixlib-3a66432f2616484c880b6daea2393bf1e9425a33.zip |
php.buildPecl: Add checkPhase
Also update phpPackages' to use NO_INTERACTION
-rw-r--r-- | pkgs/build-support/build-pecl.nix | 1 | ||||
-rw-r--r-- | pkgs/top-level/php-packages.nix | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix index d75d3cf943a0..d3a8cc54a146 100644 --- a/pkgs/build-support/build-pecl.nix +++ b/pkgs/build-support/build-pecl.nix @@ -33,4 +33,5 @@ stdenv.mkDerivation (args // { (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}") internalDeps} ''; + checkPhase = "NO_INTERACTON=yes make test"; }) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 0f61402bb05e..c59391ce2907 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -235,7 +235,7 @@ lib.makeScope pkgs.newScope (self: with self; { (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}") internalDeps} ''; - checkPhase = "runHook preCheck; echo n | make test; runHook postCheck"; + checkPhase = "runHook preCheck; NO_INTERACTON=yes make test; runHook postCheck"; outputs = [ "out" "dev" ]; installPhase = '' mkdir -p $out/lib/php/extensions |