|
46 | 46 | #This variable works the same as 'oriole_pkgs' but builds using the upstream
|
47 | 47 | #nixpkgs builds of postgresql 15 and 16 + the overlays listed below
|
48 | 48 | pkgs = import nixpkgs {
|
49 |
| - config = { allowUnfree = true; }; |
| 49 | + config = { |
| 50 | + allowUnfree = true; |
| 51 | + permittedInsecurePackages = [ |
| 52 | + "v8-9.7.106.18" |
| 53 | + ]; |
| 54 | + }; |
50 | 55 | inherit system;
|
51 | 56 | overlays = [
|
52 | 57 | # NOTE (aseipp): add any needed overlays here. in theory we could
|
53 | 58 | # pull them from the overlays/ directory automatically, but we don't
|
54 | 59 | # want to have an arbitrary order, since it might matter. being
|
55 | 60 | # explicit is better.
|
| 61 | + (final: prev: { |
| 62 | + postgresql = final.callPackage ./nix/postgresql/default.nix { |
| 63 | + inherit (final) lib; |
| 64 | + inherit (final) stdenv; |
| 65 | + inherit (final) fetchurl; |
| 66 | + inherit (final) makeWrapper; |
| 67 | + inherit (final) callPackage; |
| 68 | + }; |
| 69 | + }) |
56 | 70 | (import ./nix/overlays/cargo-pgrx-0-11-3.nix)
|
57 | 71 | # (import ./nix/overlays/postgis.nix)
|
58 | 72 | #(import ./nix/overlays/gdal-small.nix)
|
59 | 73 |
|
60 | 74 | ];
|
61 | 75 | };
|
62 |
| - |
| 76 | + postgresql_15 = pkgs.postgresql.postgresql_15; |
| 77 | + postgresql = pkgs.postgresql.postgresql_15; |
63 | 78 | sfcgal = pkgs.callPackage ./nix/ext/sfcgal/sfcgal.nix { };
|
64 |
| - pg_regress = pkgs.callPackage ./nix/ext/pg_regress.nix { }; |
| 79 | + pg_regress = pkgs.callPackage ./nix/ext/pg_regress.nix { inherit postgresql; }; |
65 | 80 |
|
66 | 81 | # Our list of PostgreSQL extensions which come from upstream Nixpkgs.
|
67 | 82 | # These are maintained upstream and can easily be used here just by
|
|
128 | 143 | #this var is a convenience setting to import the orioledb patched version of postgresql
|
129 | 144 | postgresql_orioledb_16 = oriole_pkgs.postgresql_orioledb_16;
|
130 | 145 | #postgis_override = pkgs.postgis_override;
|
131 |
| - |
| 146 | + getPostgresqlPackage = version: |
| 147 | + pkgs.postgresql."postgresql_${version}"; |
| 148 | + #we will add supported versions to this list in the future |
| 149 | + supportedVersions = [ "15" ]; |
132 | 150 | # Create a 'receipt' file for a given postgresql package. This is a way
|
133 | 151 | # of adding a bit of metadata to the package, which can be used by other
|
134 | 152 | # tools to inspect what the contents of the install are: the PSQL
|
|
170 | 188 | in map (path: pkgs.callPackage path { inherit postgresql; }) orioledbExtension;
|
171 | 189 |
|
172 | 190 | makeOurPostgresPkgs = version:
|
173 |
| - let postgresql = pkgs."postgresql_${version}"; |
| 191 | + let postgresql = getPostgresqlPackage version; |
174 | 192 | in map (path: pkgs.callPackage path { inherit postgresql; }) ourExtensions;
|
175 | 193 |
|
176 | 194 | # Create an attrset that contains all the extensions included in a server for the orioledb version of postgresql + extension.
|
|
202 | 220 | # basis for building extensions, etc.
|
203 | 221 | makePostgresBin = version:
|
204 | 222 | let
|
205 |
| - postgresql = pkgs."postgresql_${version}"; |
| 223 | + postgresql = getPostgresqlPackage version; |
206 | 224 | upstreamExts = map
|
207 | 225 | (ext: {
|
208 | 226 | name = postgresql.pkgs."${ext}".pname;
|
|
0 commit comments