File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
pkgs/servers/sql/postgresql/ext Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff 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 { } ;
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments