|
29 | 29 | # it also serves as a base for importing the orioldb/postgres overlay to
|
30 | 30 | #build the orioledb postgres patched version of postgresql16
|
31 | 31 | oriole_pkgs = import nixpkgs {
|
32 |
| - config = { allowUnfree = true; }; |
33 | 32 | inherit system;
|
34 | 33 | overlays = [
|
35 | 34 | # NOTE (aseipp): add any needed overlays here. in theory we could
|
|
45 | 44 | #This variable works the same as 'oriole_pkgs' but builds using the upstream
|
46 | 45 | #nixpkgs builds of postgresql 15 and 16 + the overlays listed below
|
47 | 46 | pkgs = import nixpkgs {
|
48 |
| - config = { allowUnfree = true; }; |
49 | 47 | inherit system;
|
50 | 48 | overlays = [
|
51 | 49 | # NOTE (aseipp): add any needed overlays here. in theory we could
|
|
57 | 55 | #(import ./nix/overlays/gdal-small.nix)
|
58 | 56 |
|
59 | 57 | ];
|
60 |
| - |
61 | 58 | };
|
62 | 59 |
|
63 |
| - sfcgal = pkgs.callPackage ./nix/ext/sfcgal/sfcgal.nix { }; |
64 | 60 |
|
65 | 61 | # FIXME (aseipp): pg_prove is yet another perl program that needs
|
66 | 62 | # LOCALE_ARCHIVE set in non-NixOS environments. upstream this. once that's done, we
|
|
132 | 128 | ./nix/ext/wrappers/default.nix
|
133 | 129 | ./nix/ext/supautils.nix
|
134 | 130 | ./nix/ext/plv8.nix
|
135 |
| - #./nix/ext/pljava.nix |
| 131 | + ./nix/ext/pljava.nix |
136 | 132 | ];
|
137 | 133 |
|
138 | 134 | #Where we import and build the orioledb extension, we add on our custom extensions
|
|
141 | 137 |
|
142 | 138 | #this var is a convenience setting to import the orioledb patched version of postgresql
|
143 | 139 | postgresql_orioledb_16 = oriole_pkgs.postgresql_orioledb_16;
|
| 140 | + #postgis_override = pkgs.postgis_override; |
144 | 141 |
|
145 |
| - |
146 | 142 | # Create a 'receipt' file for a given postgresql package. This is a way
|
147 | 143 | # of adding a bit of metadata to the package, which can be used by other
|
148 | 144 | # tools to inspect what the contents of the install are: the PSQL
|
|
309 | 305 | '';
|
310 | 306 | in
|
311 | 307 | nix2img.buildImage {
|
312 |
| - name = "samrose/nix-experimental-postgresql-${version}-${system}"; |
| 308 | + name = "nix-experimental-postgresql-${version}-${system}"; |
313 | 309 | tag = "latest";
|
314 | 310 |
|
315 | 311 | nixUid = l.toInt uid;
|
|
403 | 399 | psql_15 = makePostgres "15";
|
404 | 400 | #psql_16 = makePostgres "16";
|
405 | 401 | #psql_orioledb_16 = makeOrioleDbPostgres "16_23" postgresql_orioledb_16;
|
406 |
| - pg_prove = pg_prove; |
407 |
| - sfcgal = sfcgal; |
408 |
| - |
| 402 | + |
409 | 403 | # Start a version of the server.
|
410 | 404 | start-server =
|
411 | 405 | let
|
|
419 | 413 | --subst-var-by 'PGSQL_SUPERUSER' '${pgsqlSuperuser}' \
|
420 | 414 | --subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}' \
|
421 | 415 | --subst-var-by 'PSQL_CONF_FILE' '${configFile}' \
|
422 |
| - --subst-var-by 'PGSODIUM_GETKEY' '${getkeyScript}' |
| 416 | + --subst-var-by 'PGSODIUM_GETKEY' '${getkeyScript}' \ |
| 417 | + --subst-var-by 'LIBJVM_LOCATION' '${pkgs.openjdk11}/lib/openjdk/lib/server/libjvm.so' |
423 | 418 |
|
424 | 419 | chmod +x $out/bin/start-postgres-server
|
425 | 420 | '';
|
|
458 | 453 | mkdir -p $out/bin
|
459 | 454 | substitute ${./nix/tools/run-replica.sh.in} $out/bin/start-postgres-replica \
|
460 | 455 | --subst-var-by 'PGSQL_SUPERUSER' '${pgsqlSuperuser}' \
|
461 |
| - --subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}' |
| 456 | + --subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}'\ |
462 | 457 | chmod +x $out/bin/start-postgres-replica
|
463 | 458 | '';
|
464 | 459 | sync-exts-versions = pkgs.runCommand "sync-exts-versions" { } ''
|
|
489 | 484 | initdb --locale=C
|
490 | 485 |
|
491 | 486 | substitute ${./nix/tests/postgresql.conf.in} $PGDATA/postgresql.conf \
|
492 |
| - --subst-var-by PGSODIUM_GETKEY_SCRIPT "${./nix/tests/util/pgsodium_getkey.sh}" |
| 487 | + --subst-var-by PGSODIUM_GETKEY_SCRIPT "${./nix/tests/util/pgsodium_getkey.sh}" \ |
| 488 | + --subst-var-by PLJAVA_LIBJVM_LOCATION "${pkgs.openjdk11}/lib/openjdk/lib/server/libjvm.so" |
493 | 489 |
|
494 | 490 |
|
495 | 491 | postgres -k /tmp >logfile 2>&1 &
|
|
555 | 551 | nix-update
|
556 | 552 | pg_prove
|
557 | 553 | shellcheck
|
558 |
| - ansible |
559 |
| - ansible-lint |
560 |
| - (packer.overrideAttrs (oldAttrs: { |
561 |
| - version = "1.7.8"; |
562 |
| - })) |
| 554 | + |
563 | 555 | basePackages.start-server
|
564 | 556 | basePackages.start-client
|
565 | 557 | basePackages.start-replica
|
|
0 commit comments