phpPackages.pdo_oci: init

This commit is contained in:
Aaron Andersen 2020-02-19 14:28:05 -05:00
parent af1fffab5b
commit d0e817f63f

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";