feat: Drop support for pg 11
PostgreSQL 11 is EOL since November 2023.
This commit is contained in:
committed by
Wolfgang Walther
parent
126178642b
commit
bb96c2dc74
+12
-12
@@ -75,12 +75,12 @@ The PostgREST utilities available in `nix-shell` all have names that begin with
|
||||
postgrest-build postgrest-test-spec
|
||||
postgrest-check postgrest-watch
|
||||
postgrest-clean postgrest-with-all
|
||||
postgrest-coverage postgrest-with-postgresql-11
|
||||
postgrest-lint postgrest-with-postgresql-12
|
||||
postgrest-run postgrest-with-postgresql-13
|
||||
postgrest-style postgrest-with-postgresql-14
|
||||
postgrest-style-check postgrest-with-postgresql-15
|
||||
postgrest-test-io postgrest-with-postgresql-16
|
||||
postgrest-coverage postgrest-with-postgresql-12
|
||||
postgrest-lint postgrest-with-postgresql-13
|
||||
postgrest-run postgrest-with-postgresql-14
|
||||
postgrest-style postgrest-with-postgresql-15
|
||||
postgrest-style-check postgrest-with-postgresql-16
|
||||
postgrest-test-io
|
||||
...
|
||||
|
||||
[nix-shell]$
|
||||
@@ -99,12 +99,12 @@ $ nix-shell --arg memory true
|
||||
postgrest-build postgrest-test-spec
|
||||
postgrest-check postgrest-watch
|
||||
postgrest-clean postgrest-with-all
|
||||
postgrest-coverage postgrest-with-postgresql-11
|
||||
postgrest-lint postgrest-with-postgresql-12
|
||||
postgrest-run postgrest-with-postgresql-13
|
||||
postgrest-style postgrest-with-postgresql-14
|
||||
postgrest-style-check postgrest-with-postgresql-15
|
||||
postgrest-test-io postgrest-with-postgresql-16
|
||||
postgrest-coverage postgrest-with-postgresql-12
|
||||
postgrest-lint postgrest-with-postgresql-13
|
||||
postgrest-run postgrest-with-postgresql-14
|
||||
postgrest-style postgrest-with-postgresql-15
|
||||
postgrest-style-check postgrest-with-postgresql-16
|
||||
postgrest-test-io
|
||||
postgrest-test-memory
|
||||
...
|
||||
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
checked-shell-script = import ./checked-shell-script;
|
||||
gitignore = import ./gitignore.nix;
|
||||
haskell-packages = import ./haskell-packages.nix;
|
||||
postgis = import ./postgis.nix;
|
||||
postgresql-libpq = import ./postgresql-libpq.nix;
|
||||
postgresql-legacy = import ./postgresql-legacy.nix;
|
||||
postgresql-future = import ./postgresql-future.nix;
|
||||
slocat = import ./slocat.nix;
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
final: prev:
|
||||
let
|
||||
postgis_3_2_3 = rec {
|
||||
version = "3.2.3";
|
||||
src = final.fetchurl {
|
||||
url = "https://download.osgeo.org/postgis/source/postgis-${version}.tar.gz";
|
||||
sha256 = "sha256-G02LXHVuWrpZ77wYM7Iu/k1lYneO7KVvpJf+susTZow=";
|
||||
};
|
||||
meta.broken = false;
|
||||
};
|
||||
in
|
||||
{
|
||||
postgresql_11 = prev.postgresql_11.override { this = final.postgresql_11; } // {
|
||||
pkgs = prev.postgresql_11.pkgs // {
|
||||
postgis = prev.postgresql_11.pkgs.postgis.overrideAttrs (_: postgis_3_2_3);
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
_: _:
|
||||
# Overlay that adds legacy versions of PostgreSQL that are supported by
|
||||
# PostgREST.
|
||||
{
|
||||
# PostgreSQL 11 was removed from Nixpkgs with
|
||||
# https://github.com/NixOS/nixpkgs/commit/1220a4d4dd1a4590780a5e1c18d1333a121be366
|
||||
# We pin its parent commit to get the last version that was available.
|
||||
postgresql_11 =
|
||||
let
|
||||
rev = "f5458516e42cc5cb4123cc2d93f45c240548aa18";
|
||||
tarballHash = "1h03621sxfhw4z6ya74k6c2lyx3z7pvf2jcg4vs7i01yz2m6w3cv";
|
||||
pinnedPkgs =
|
||||
builtins.fetchTarball {
|
||||
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
||||
sha256 = tarballHash;
|
||||
};
|
||||
in
|
||||
(import pinnedPkgs { }).pkgs.postgresql_11;
|
||||
}
|
||||
Reference in New Issue
Block a user