Those extensions don't support building with PostgreSQL 18, yet. To make sure the broken status is updated on the next upgrade, they all have version checks in the form of an evaluation warning, so that there has be explicit action regarding its PG18 compatibility.
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
freetds,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
|
pname = "tds_fdw";
|
|
version = "2.0.4";
|
|
|
|
buildInputs = [ freetds ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tds-fdw";
|
|
repo = "tds_fdw";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ruelOHueaHx1royLPvDM8Abd1rQD62R4KXgtHY9qqTw=";
|
|
};
|
|
|
|
meta = {
|
|
# PostgreSQL 18 support issue upstream: https://github.com/tds-fdw/tds_fdw/issues/384
|
|
# Check after next package update.
|
|
broken = lib.warnIf (
|
|
finalAttrs.version != "2.0.4"
|
|
) "Is postgresql18Packages.tds_fdw still broken?" (lib.versionAtLeast postgresql.version "18");
|
|
description = "PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)";
|
|
homepage = "https://github.com/tds-fdw/tds_fdw";
|
|
changelog = "https://github.com/tds-fdw/tds_fdw/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with lib.maintainers; [ steve-chavez ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = lib.licenses.postgresql;
|
|
};
|
|
})
|