summaryrefslogtreecommitdiffstats
path: root/pkgs/development/php-packages/sqlsrv/default.nix
blob: fe2f77e5a24558fa44c2c4ae828461de1524c87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  stdenv,
  buildPecl,
  lib,
  unixodbc,
  libiconv,
}:
buildPecl {
  pname = "sqlsrv";

  version = "5.13.0";
  sha256 = "sha256-MdbCg1oFp7btDw3bZ1VsqRRlKlelccJokfAtitmbflw=";

  buildInputs = [ unixodbc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];

  meta = {
    description = "Microsoft Drivers for PHP for SQL Server";
    license = lib.licenses.mit;
    homepage = "https://github.com/Microsoft/msphpsql";
    teams = [ lib.teams.php ];
  };
}