2024-09-17 20:55:33 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
postgresql,
|
|
|
|
freetds,
|
|
|
|
unstableGitUpdater,
|
|
|
|
buildPostgresqlExtension,
|
|
|
|
}:
|
2019-03-13 02:38:58 +00:00
|
|
|
|
2024-09-17 20:55:33 +01:00
|
|
|
buildPostgresqlExtension rec {
|
2019-03-13 02:38:58 +00:00
|
|
|
pname = "tds_fdw";
|
2024-09-29 10:33:39 +01:00
|
|
|
version = "2.0.4";
|
2019-03-13 02:38:58 +00:00
|
|
|
|
2024-09-17 20:55:33 +01:00
|
|
|
buildInputs = [ freetds ];
|
2019-03-13 02:38:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tds-fdw";
|
2023-09-22 05:20:00 +01:00
|
|
|
repo = "tds_fdw";
|
2024-09-29 10:33:39 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-ruelOHueaHx1royLPvDM8Abd1rQD62R4KXgtHY9qqTw=";
|
2019-03-13 02:38:58 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-13 02:38:58 +00:00
|
|
|
description = "PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tds-fdw/tds_fdw";
|
2024-09-29 10:33:39 +01:00
|
|
|
changelog = "https://github.com/tds-fdw/tds_fdw/releases/tag/v${version}";
|
2019-03-13 02:38:58 +00:00
|
|
|
maintainers = [ maintainers.steve-chavez ];
|
2019-05-06 12:00:00 +01:00
|
|
|
platforms = postgresql.meta.platforms;
|
2019-03-13 02:38:58 +00:00
|
|
|
license = licenses.postgresql;
|
|
|
|
};
|
|
|
|
}
|