File tree Expand file tree Collapse file tree 2 files changed +45
-12
lines changed
development/php-packages/pdo_oci Expand file tree Collapse file tree 2 files changed +45
-12
lines changed Original file line number Diff line number Diff line change 1+ {
2+ buildPecl ,
3+ lib ,
4+ oracle-instantclient ,
5+ php ,
6+ } :
7+
8+ buildPecl {
9+ version = "1.1.0" ;
10+ pname = "pdo_oci" ;
11+
12+ hash = "sha256-XKtpWH6Rn8s19Wlu15eb/6dcCpJ7Bc/pr9Pxi8L4S8c=" ;
13+
14+ buildInputs = [ oracle-instantclient ] ;
15+ configureFlags = [ "--with-pdo-oci=instantclient,${ oracle-instantclient . lib } /lib" ] ;
16+
17+ internalDeps = [ php . extensions . pdo ] ;
18+ postPatch = ''
19+ sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${ oracle-instantclient . dev } /include"|' config.m4
20+ '' ;
21+
22+ meta = {
23+ changelog = "https://pecl.php.net/package-changelog.php?package=PDO_OCI" ;
24+ description = "The PHP PDO_OCI extension lets you access Oracle Database" ;
25+ license = lib . licenses . php301 ;
26+ homepage = "https://pecl.php.net/package/pdo_oci" ;
27+ maintainers = lib . teams . php . members ;
28+ } ;
29+ }
Original file line number Diff line number Diff line change @@ -342,22 +342,26 @@ lib.makeScope pkgs.newScope (
342342
343343 pcov = callPackage ../development/php-packages/pcov { } ;
344344
345- pdo_oci = buildPecl rec {
346- inherit ( php . unwrapped ) src version ;
345+ pdo_oci =
346+ if ( lib . versionAtLeast php . version "8.4" ) then
347+ callPackage ../development/php-packages/pdo_oci { }
348+ else
349+ buildPecl rec {
350+ inherit ( php . unwrapped ) src version ;
347351
348- pname = "pdo_oci" ;
349- sourceRoot = "php-${ version } /ext/pdo_oci" ;
352+ pname = "pdo_oci" ;
353+ sourceRoot = "php-${ version } /ext/pdo_oci" ;
350354
351- buildInputs = [ pkgs . oracle-instantclient ] ;
352- configureFlags = [ "--with-pdo-oci=instantclient,${ pkgs . oracle-instantclient . lib } /lib" ] ;
355+ buildInputs = [ pkgs . oracle-instantclient ] ;
356+ configureFlags = [ "--with-pdo-oci=instantclient,${ pkgs . oracle-instantclient . lib } /lib" ] ;
353357
354- internalDeps = [ php . extensions . pdo ] ;
355- postPatch = ''
356- sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${ pkgs . oracle-instantclient . dev } /include"|' config.m4
357- '' ;
358+ internalDeps = [ php . extensions . pdo ] ;
359+ postPatch = ''
360+ sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${ pkgs . oracle-instantclient . dev } /include"|' config.m4
361+ '' ;
358362
359- meta . maintainers = lib . teams . php . members ;
360- } ;
363+ meta . maintainers = lib . teams . php . members ;
364+ } ;
361365
362366 pdo_sqlsrv = callPackage ../development/php-packages/pdo_sqlsrv { } ;
363367
You can’t perform that action at this time.
0 commit comments