diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 03e9bf3329..8c59159120 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,7 +63,7 @@ jobs: strategy: fail-fast: false matrix: - pgVersion: [9.6, 10, 11, 12, 13, 14, 15] + pgVersion: [9.6, 10, 11, 12, 13, 14, 15, 16] name: Test PG ${{ matrix.pgVersion }} (Nix) runs-on: ubuntu-latest defaults: diff --git a/default.nix b/default.nix index e18d5010e4..40a672507c 100644 --- a/default.nix +++ b/default.nix @@ -50,6 +50,7 @@ let postgresqlVersions = [ + { name = "postgresql-16"; postgresql = pkgs.postgresql_16.withPackages (p: [ p.postgis p.pg_safeupdate ]); } { name = "postgresql-15"; postgresql = pkgs.postgresql_15.withPackages (p: [ p.postgis p.pg_safeupdate ]); } { name = "postgresql-14"; postgresql = pkgs.postgresql_14.withPackages (p: [ p.postgis p.pg_safeupdate ]); } { name = "postgresql-13"; postgresql = pkgs.postgresql_13.withPackages (p: [ p.postgis p.pg_safeupdate ]); } diff --git a/nix/overlays/postgresql-future.nix b/nix/overlays/postgresql-future.nix index d9b480a117..9180c64e5e 100644 --- a/nix/overlays/postgresql-future.nix +++ b/nix/overlays/postgresql-future.nix @@ -4,16 +4,16 @@ self: super: { ## Example for including a postgresql version from a specific nixpks commit: ## - # postgresql_14 = - # let - # rev = "76b1e16c6659ccef7187ca69b287525fea133244"; - # tarballHash = "1vsahpcx80k2bgslspb0sa6j4bmhdx77sw6la455drqcrqhdqj6a"; - # - # pinnedPkgs = - # builtins.fetchTarball { - # url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz"; - # sha256 = tarballHash; - # }; - # in - # (import pinnedPkgs { }).pkgs.postgresql_14; + postgresql_16 = + let + rev = "5148520bfab61f99fd25fb9ff7bfbb50dad3c9db"; + tarballHash = "1dfjmz65h8z4lk845724vypzmf3dbgsdndjpj8ydlhx6c7rpcq3p"; + + pinnedPkgs = + builtins.fetchTarball { + url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz"; + sha256 = tarballHash; + }; + in + (import pinnedPkgs { }).pkgs.postgresql_16; }