|
290 | 290 | # Define the available PostgreSQL versions |
291 | 291 | postgresVersions = { |
292 | 292 | psql_15 = makePostgres "15"; |
293 | | - # Uncomment the line below to enable PostgreSQL 16 |
294 | | - # psql_16 = makePostgres "16"; |
| 293 | + psql_16 = makePostgres "16"; |
295 | 294 | # psql_orioledb_16 = makeOrioleDbPostgres "16_23" postgresql_orioledb_16; |
296 | 295 | }; |
297 | 296 |
|
|
307 | 306 | postgresql = postgresqlPackage; |
308 | 307 | }; |
309 | 308 | postgresql_15 = getPostgresqlPackage "15"; |
| 309 | + postgresql_16 = getPostgresqlPackage "16"; |
310 | 310 | in |
311 | 311 | postgresVersions //{ |
312 | 312 | supabase-groonga = supabase-groonga; |
313 | 313 | # PostgreSQL versions. |
314 | | - psql_15 = makePostgres "15"; |
| 314 | + psql_15 = postgresVersions.psql_15; |
| 315 | + psql_16 = postgresVersions.psql_16; |
315 | 316 | #psql_orioledb_16 = makeOrioleDbPostgres "16_23" postgresql_orioledb_16; |
316 | 317 | sfcgal = sfcgal; |
317 | 318 | pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP; |
318 | | - inherit postgresql_15; |
| 319 | + inherit postgresql_15 postgresql_16; |
319 | 320 | postgresql_15_debug = if pkgs.stdenv.isLinux then postgresql_15.debug else null; |
320 | 321 | postgresql_15_src = pkgs.stdenv.mkDerivation { |
321 | 322 | pname = "postgresql-15-src"; |
|
339 | 340 | platforms = platforms.all; |
340 | 341 | }; |
341 | 342 | }; |
| 343 | + postgresql_16_src = pkgs.stdenv.mkDerivation { |
| 344 | + pname = "postgresql-16-src"; |
| 345 | + version = postgresql_16.version; |
| 346 | + |
| 347 | + src = postgresql_16.src; |
| 348 | + |
| 349 | + nativeBuildInputs = [ pkgs.bzip2 ]; |
| 350 | + |
| 351 | + phases = [ "unpackPhase" "installPhase" ]; |
| 352 | + |
| 353 | + installPhase = '' |
| 354 | + mkdir -p $out |
| 355 | + cp -r . $out |
| 356 | + ''; |
| 357 | + |
| 358 | + meta = with pkgs.lib; { |
| 359 | + description = "PostgreSQL 15 source files"; |
| 360 | + homepage = "https://www.postgresql.org/"; |
| 361 | + license = licenses.postgresql; |
| 362 | + platforms = platforms.all; |
| 363 | + }; |
| 364 | + }; |
342 | 365 | mecab_naist_jdic = mecab-naist-jdic; |
343 | 366 | supabase_groonga = supabase-groonga; |
344 | 367 | pg_regress = makePgRegress activeVersion; |
|
397 | 420 | --subst-var-by 'PGSQL_SUPERUSER' '${pgsqlSuperuser}' \ |
398 | 421 | --subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}' \ |
399 | 422 | --subst-var-by 'PSQL_CONF_FILE' $out/etc/postgresql/postgresql.conf \ |
| 423 | + --subst-var-by 'PSQL16_BINDIR' '${basePackages.psql_16.bin}' \ |
400 | 424 | --subst-var-by 'PGSODIUM_GETKEY' '${getkeyScript}' \ |
401 | 425 | --subst-var-by 'READREPL_CONF_FILE' "$out/etc/postgresql-custom/read-replica.conf" \ |
402 | 426 | --subst-var-by 'LOGGING_CONF_FILE' "$out/etc/postgresql-custom/logging.conf" \ |
|
425 | 449 | --subst-var-by 'PGSQL_DEFAULT_PORT' '${pgsqlDefaultPort}' \ |
426 | 450 | --subst-var-by 'PGSQL_SUPERUSER' '${pgsqlSuperuser}' \ |
427 | 451 | --subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}' \ |
| 452 | + --subst-var-by 'PSQL16_BINDIR' '${basePackages.psql_16.bin}' \ |
428 | 453 | --subst-var-by 'MIGRATIONS_DIR' '${migrationsDir}' \ |
429 | 454 | --subst-var-by 'POSTGRESQL_SCHEMA_SQL' '${postgresqlSchemaSql}' \ |
430 | 455 | --subst-var-by 'PGBOUNCER_AUTH_SCHEMA_SQL' '${pgbouncerAuthSchemaSql}' \ |
|
569 | 594 | # flake check'. This is run in the CI system, as well. |
570 | 595 | checks = { |
571 | 596 | psql_15 = makeCheckHarness basePackages.psql_15.bin; |
572 | | - #psql_16 = makeCheckHarness basePackages.psql_16.bin; |
| 597 | + psql_16 = makeCheckHarness basePackages.psql_16.bin; |
573 | 598 | #psql_orioledb_16 = makeCheckHarness basePackages.psql_orioledb_16.bin; |
574 | 599 | }; |
575 | 600 |
|
|
0 commit comments