2021-03-09 03:18:52 +00:00
|
|
|
{ buildPecl, lib, version, sha256, oracle-instantclient }:
|
2020-10-16 20:44:37 +00:00
|
|
|
buildPecl {
|
|
|
|
pname = "oci8";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit version sha256;
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ oracle-instantclient ];
|
|
|
|
configureFlags = [ "--with-oci8=shared,instantclient,${oracle-instantclient.lib}/lib" ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${oracle-instantclient.dev}/include"|' config.m4
|
2020-10-16 20:44:37 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00: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-16 20:44:37 +00:00
|
|
|
}
|