Skip to content

Commit 9208cfc

Browse files
committed
feat: filter timescaledb to only be included on v15
1 parent 8910ea0 commit 9208cfc

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

flake.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@
131131
# go through the upstream release engineering process.
132132
ourExtensions = [
133133
./nix/ext/rum.nix
134-
./nix/ext/timescaledb.nix
135-
./nix/ext/timescaledb-2.9.1.nix
136134
./nix/ext/pgroonga.nix
137135
./nix/ext/index_advisor.nix
138136
./nix/ext/wal2json.nix
@@ -214,9 +212,16 @@
214212
in map (path: pkgs.callPackage path { inherit postgresql; }) orioledbExtension;
215213

216214
makeOurPostgresPkgs = version:
217-
let postgresql = getPostgresqlPackage version;
218-
in map (path: pkgs.callPackage path { inherit postgresql; }) ourExtensions;
219-
215+
let
216+
postgresql = getPostgresqlPackage version;
217+
extensions = if version == "15"
218+
then ourExtensions ++ [
219+
./nix/ext/timescaledb.nix
220+
./nix/ext/timescaledb-2.9.1.nix
221+
]
222+
else ourExtensions;
223+
in
224+
map (path: pkgs.callPackage path { inherit postgresql; }) extensions;
220225
# Create an attrset that contains all the extensions included in a server for the orioledb version of postgresql + extension.
221226
makeOurOrioleDbPostgresPkgsSet = version: patchedPostgres:
222227
(builtins.listToAttrs (map

0 commit comments

Comments
 (0)