Skip to content

Commit 0d9b64a

Browse files
committed
postgresqlPackages.sqlite_fdw: init at 2.4.0
1 parent e853a7f commit 0d9b64a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

pkgs/servers/sql/postgresql/ext/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ self: super: {
107107

108108
rum = super.callPackage ./rum.nix { };
109109

110+
sqlite_fdw = super.callPackage ./sqlite_fdw.nix { };
111+
110112
tsja = super.callPackage ./tsja.nix { };
111113

112114
wal2json = super.callPackage ./wal2json.nix { };
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
sqlite,
5+
postgresql,
6+
buildPostgresqlExtension,
7+
}:
8+
9+
buildPostgresqlExtension rec {
10+
pname = "sqlite_fdw";
11+
# TODO: Check whether PostgreSQL 17 is still broken after next update.
12+
version = "2.4.0";
13+
14+
src = fetchFromGitHub {
15+
owner = "pgspider";
16+
repo = "sqlite_fdw";
17+
rev = "v${version}";
18+
hash = "sha256-u51rcKUH2nZyZbI2g3crzHt5jiacbTq4xmfP3JgqnnM=";
19+
};
20+
21+
buildInputs = [ sqlite ];
22+
23+
makeFlags = [ "USE_PGXS=1" ];
24+
25+
meta = {
26+
description = "SQLite Foreign Data Wrapper for PostgreSQL";
27+
homepage = "https://github.com/pgspider/sqlite_fdw";
28+
changelog = "https://github.com/pgspider/sqlite_fdw/releases/tag/v${version}";
29+
maintainers = with lib.maintainers; [ apfelkuchen6 ];
30+
platforms = lib.platforms.unix;
31+
license = lib.licenses.postgresql;
32+
broken = lib.versionAtLeast postgresql.version "17";
33+
};
34+
}

0 commit comments

Comments
 (0)