2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
buildPecl,
|
|
|
|
lib,
|
|
|
|
libiconv,
|
|
|
|
unixODBC,
|
|
|
|
php,
|
|
|
|
}:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "pdo_sqlsrv";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "5.10.1";
|
|
|
|
sha256 = "sha256-x4VBlqI2vINQijRvjG7x35mbwh7rvYOL2wUTIV4GKK0=";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
internalDeps = [ php.extensions.pdo ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ unixODBC ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Microsoft Drivers for PHP for SQL Server";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/Microsoft/msphpsql";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
}
|