2021-02-27 11:29:20 +01:00
|
|
|
{ buildPecl, lib, version, sha256, oracle-instantclient }:
|
2020-10-11 19:16:59 +02:00
|
|
|
buildPecl {
|
|
|
|
pname = "oci8";
|
|
|
|
|
2021-01-10 02:06:20 +01:00
|
|
|
inherit version sha256;
|
2020-10-11 19:16:59 +02:00
|
|
|
|
2021-02-27 11:29:20 +01:00
|
|
|
buildInputs = [ oracle-instantclient ];
|
|
|
|
configureFlags = [ "--with-oci8=shared,instantclient,${oracle-instantclient.lib}/lib" ];
|
2020-10-11 19:16:59 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
2021-02-27 11:29:20 +01:00
|
|
|
sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${oracle-instantclient.dev}/include"|' config.m4
|
2020-10-11 19:16:59 +02:00
|
|
|
'';
|
|
|
|
|
2021-06-08 11:50:05 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extension for Oracle Database";
|
|
|
|
license = licenses.php301;
|
|
|
|
homepage = "https://pecl.php.net/package/oci8";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
2020-10-11 19:16:59 +02:00
|
|
|
}
|