Merge pull request #80563 from aanderse/phpPackages.pdo_oci

phpPackages.pdo_oci: init
This commit is contained in:
Maximilian Bosch 2020-02-19 21:37:26 +01:00 committed by GitHub
commit 43a775649c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,6 +287,20 @@ let
meta.broken = isPhp74; # Build error
};
pdo_oci = buildPecl rec {
inherit (php) src version;
pname = "pdo_oci";
sourceRoot = "php-${version}/ext/pdo_oci";
buildInputs = [ pkgs.oracle-instantclient ];
configureFlags = [ "--with-pdo-oci=instantclient,${pkgs.oracle-instantclient.lib}/lib" ];
postPatch = ''
sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${pkgs.oracle-instantclient.dev}/include"|' config.m4
'';
};
pdo_sqlsrv = buildPecl {
version = "5.8.0";
pname = "pdo_sqlsrv";