Merge pull request #125230 from NixOS/backport-124603-to-release-21.05

[Backport release-21.05] php.buildPecl: Add checkPhase
This commit is contained in:
Robert Scott 2021-06-01 21:00:19 +01:00 committed by GitHub
commit 5237039cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -33,4 +33,5 @@ stdenv.mkDerivation (args // {
(dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}") (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}")
internalDeps} internalDeps}
''; '';
checkPhase = "NO_INTERACTON=yes make test";
}) })

View File

@ -235,7 +235,7 @@ lib.makeScope pkgs.newScope (self: with self; {
(dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}") (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}")
internalDeps} internalDeps}
''; '';
checkPhase = "runHook preCheck; echo n | make test; runHook postCheck"; checkPhase = "runHook preCheck; NO_INTERACTON=yes make test; runHook postCheck";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
installPhase = '' installPhase = ''
mkdir -p $out/lib/php/extensions mkdir -p $out/lib/php/extensions