Merge: postgresqlPackages.sqlite_fdw: init at 2.4.0 (#350353)

This commit is contained in:
Maximilian Bosch 2024-11-17 14:52:22 +01:00 committed by GitHub
commit a0a51776ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

View File

@ -107,6 +107,8 @@ in {
rum = super.callPackage ./rum.nix { };
sqlite_fdw = super.callPackage ./sqlite_fdw.nix { };
tsja = super.callPackage ./tsja.nix { };
wal2json = super.callPackage ./wal2json.nix { };

View File

@ -0,0 +1,34 @@
{
lib,
fetchFromGitHub,
sqlite,
postgresql,
buildPostgresqlExtension,
}:
buildPostgresqlExtension rec {
pname = "sqlite_fdw";
# TODO: Check whether PostgreSQL 17 is still broken after next update.
version = "2.4.0";
src = fetchFromGitHub {
owner = "pgspider";
repo = "sqlite_fdw";
rev = "v${version}";
hash = "sha256-u51rcKUH2nZyZbI2g3crzHt5jiacbTq4xmfP3JgqnnM=";
};
buildInputs = [ sqlite ];
makeFlags = [ "USE_PGXS=1" ];
meta = {
description = "SQLite Foreign Data Wrapper for PostgreSQL";
homepage = "https://github.com/pgspider/sqlite_fdw";
changelog = "https://github.com/pgspider/sqlite_fdw/releases/tag/v${version}";
maintainers = with lib.maintainers; [ apfelkuchen6 ];
platforms = lib.platforms.unix;
license = lib.licenses.postgresql;
broken = lib.versionAtLeast postgresql.version "17";
};
}