Skip to content

Commit

Permalink
Merge pull request #80563 from aanderse/phpPackages.pdo_oci
Browse files Browse the repository at this point in the history
phpPackages.pdo_oci: init
  • Loading branch information
Ma27 committed Feb 19, 2020
2 parents 24bc04b + d0e817f commit 43a7756
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/top-level/php-packages.nix
Expand Up @@ -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";
Expand Down

0 comments on commit 43a7756

Please sign in to comment.