mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
Merge pull request #167047 from helsinki-systems/drop/postgresql10
postgresql: remove 10.x
This commit is contained in:
commit
405db07799
8 changed files with 10 additions and 22 deletions
|
@ -9,7 +9,7 @@ containers.database =
|
||||||
{ config =
|
{ config =
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ services.postgresql.enable = true;
|
{ services.postgresql.enable = true;
|
||||||
services.postgresql.package = pkgs.postgresql_10;
|
services.postgresql.package = pkgs.postgresql_14;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
|
@ -166,7 +166,7 @@ Packages
|
||||||
pkgs.emacs
|
pkgs.emacs
|
||||||
];
|
];
|
||||||
|
|
||||||
services.postgresql.package = pkgs.postgresql_10;
|
services.postgresql.package = pkgs.postgresql_14;
|
||||||
```
|
```
|
||||||
|
|
||||||
The latter option definition changes the default PostgreSQL package
|
The latter option definition changes the default PostgreSQL package
|
||||||
|
|
|
@ -11,7 +11,7 @@ containers.database =
|
||||||
{ config =
|
{ config =
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ services.postgresql.enable = true;
|
{ services.postgresql.enable = true;
|
||||||
services.postgresql.package = pkgs.postgresql_10;
|
services.postgresql.package = pkgs.postgresql_14;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
|
@ -217,7 +217,7 @@ environment.systemPackages =
|
||||||
pkgs.emacs
|
pkgs.emacs
|
||||||
];
|
];
|
||||||
|
|
||||||
services.postgresql.package = pkgs.postgresql_10;
|
services.postgresql.package = pkgs.postgresql_14;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
The latter option definition changes the default PostgreSQL
|
The latter option definition changes the default PostgreSQL
|
||||||
|
|
|
@ -720,7 +720,7 @@ in
|
||||||
{ config =
|
{ config =
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ services.postgresql.enable = true;
|
{ services.postgresql.enable = true;
|
||||||
services.postgresql.package = pkgs.postgresql_10;
|
services.postgresql.package = pkgs.postgresql_14;
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,7 +21,6 @@ let
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
atLeast = lib.versionAtLeast version;
|
atLeast = lib.versionAtLeast version;
|
||||||
icuEnabled = atLeast "10";
|
|
||||||
lz4Enabled = atLeast "14";
|
lz4Enabled = atLeast "14";
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
|
@ -39,14 +38,13 @@ let
|
||||||
setOutputFlags = false; # $out retains configureFlags :-/
|
setOutputFlags = false; # $out retains configureFlags :-/
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ zlib readline openssl libxml2 ]
|
[ zlib readline openssl libxml2 icu ]
|
||||||
++ lib.optionals icuEnabled [ icu ]
|
|
||||||
++ lib.optionals lz4Enabled [ lz4 ]
|
++ lib.optionals lz4Enabled [ lz4 ]
|
||||||
++ lib.optionals enableSystemd [ systemd ]
|
++ lib.optionals enableSystemd [ systemd ]
|
||||||
++ lib.optionals gssSupport [ libkrb5 ]
|
++ lib.optionals gssSupport [ libkrb5 ]
|
||||||
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals icuEnabled [ pkg-config ];
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
||||||
|
|
||||||
enableParallelBuilding = !stdenv.isDarwin;
|
enableParallelBuilding = !stdenv.isDarwin;
|
||||||
|
|
||||||
|
@ -62,14 +60,14 @@ let
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-openssl"
|
"--with-openssl"
|
||||||
"--with-libxml"
|
"--with-libxml"
|
||||||
|
"--with-icu"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--libdir=$(lib)/lib"
|
"--libdir=$(lib)/lib"
|
||||||
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
||||||
"--enable-debug"
|
"--enable-debug"
|
||||||
(lib.optionalString enableSystemd "--with-systemd")
|
(lib.optionalString enableSystemd "--with-systemd")
|
||||||
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
||||||
] ++ lib.optionals icuEnabled [ "--with-icu" ]
|
] ++ lib.optionals lz4Enabled [ "--with-lz4" ]
|
||||||
++ lib.optionals lz4Enabled [ "--with-lz4" ]
|
|
||||||
++ lib.optionals gssSupport [ "--with-gssapi" ]
|
++ lib.optionals gssSupport [ "--with-gssapi" ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isRiscV [ "--disable-spinlocks" ];
|
++ lib.optionals stdenv.hostPlatform.isRiscV [ "--disable-spinlocks" ];
|
||||||
|
|
||||||
|
@ -200,16 +198,6 @@ let
|
||||||
|
|
||||||
in self: {
|
in self: {
|
||||||
|
|
||||||
postgresql_10 = self.callPackage generic {
|
|
||||||
version = "10.22";
|
|
||||||
psqlSchema = "10.0"; # should be 10, but changing it is invasive
|
|
||||||
hash = "sha256-lVl3VVxp3xpk9EuB1KGYfrdKu9GHBXn1rZ2UYTPdjk0=";
|
|
||||||
this = self.postgresql_10;
|
|
||||||
thisAttr = "postgresql_10";
|
|
||||||
inherit self;
|
|
||||||
icu = self.icu67;
|
|
||||||
};
|
|
||||||
|
|
||||||
postgresql_11 = self.callPackage generic {
|
postgresql_11 = self.callPackage generic {
|
||||||
version = "11.17";
|
version = "11.17";
|
||||||
psqlSchema = "11.1"; # should be 11, but changing it is invasive
|
psqlSchema = "11.1"; # should be 11, but changing it is invasive
|
||||||
|
|
|
@ -918,6 +918,7 @@ mapAliases ({
|
||||||
# postgresql
|
# postgresql
|
||||||
postgresql96 = throw "'postgresql96' has been renamed to/replaced by 'postgresql_9_6'"; # Converted to throw 2022-09-24
|
postgresql96 = throw "'postgresql96' has been renamed to/replaced by 'postgresql_9_6'"; # Converted to throw 2022-09-24
|
||||||
postgresql_9_6 = throw "postgresql_9_6 has been removed from nixpkgs, as this version is no longer supported by upstream"; # Added 2021-12-03
|
postgresql_9_6 = throw "postgresql_9_6 has been removed from nixpkgs, as this version is no longer supported by upstream"; # Added 2021-12-03
|
||||||
|
postgresql_10 = throw "postgresql_10 has been removed from nixpkgs, as this version went EOL on 2022-11-10"; # Added 2022-08-01
|
||||||
|
|
||||||
# postgresql plugins
|
# postgresql plugins
|
||||||
cstore_fdw = throw "'cstore_fdw' has been renamed to/replaced by 'postgresqlPackages.cstore_fdw'"; # Converted to throw 2022-09-24
|
cstore_fdw = throw "'cstore_fdw' has been renamed to/replaced by 'postgresqlPackages.cstore_fdw'"; # Converted to throw 2022-09-24
|
||||||
|
|
|
@ -23812,7 +23812,6 @@ with pkgs;
|
||||||
timescaledb-tune = callPackage ../development/tools/database/timescaledb-tune { };
|
timescaledb-tune = callPackage ../development/tools/database/timescaledb-tune { };
|
||||||
|
|
||||||
inherit (import ../servers/sql/postgresql pkgs)
|
inherit (import ../servers/sql/postgresql pkgs)
|
||||||
postgresql_10
|
|
||||||
postgresql_11
|
postgresql_11
|
||||||
postgresql_12
|
postgresql_12
|
||||||
postgresql_13
|
postgresql_13
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue