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
|
|
|
'';
|
|
|
|
|
|
|
|
meta.maintainers = lib.teams.php.members;
|
|
|
|
}
|