Merge pull request #164313 from Ma27/drop-nextcloud21

nextcloud21: remove
main
Maximilian Bosch 2 years ago committed by GitHub
commit 5226029af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      nixos/modules/services/web-apps/nextcloud.nix
  2. 2
      nixos/tests/nextcloud/default.nix
  3. 17
      pkgs/servers/nextcloud/default.nix
  4. 2
      pkgs/top-level/all-packages.nix

@ -153,7 +153,7 @@ in {
package = mkOption {
type = types.package;
description = "Which package to use for the Nextcloud instance.";
relatedPackages = [ "nextcloud21" "nextcloud22" "nextcloud23" ];
relatedPackages = [ "nextcloud22" "nextcloud23" ];
};
phpPackage = mkOption {
type = types.package;
@ -571,15 +571,6 @@ in {
nextcloud defined in an overlay, please set `services.nextcloud.package` to
`pkgs.nextcloud`.
''
# 21.03 will not be an official release - it was instead 21.05.
# This versionOlder statement remains set to 21.03 for backwards compatibility.
# See https://github.com/NixOS/nixpkgs/pull/108899 and
# https://github.com/NixOS/rfcs/blob/master/rfcs/0080-nixos-release-schedule.md.
# FIXME(@Ma27) remove this else-if as soon as 21.05 is EOL! This is only here
# to ensure that users who are on Nextcloud 19 with a stateVersion <21.05 with
# no explicit services.nextcloud.package don't upgrade to v21 by accident (
# nextcloud20 throws an eval-error because it's dropped).
else if versionOlder stateVersion "21.03" then nextcloud20
else if versionOlder stateVersion "21.11" then nextcloud21
else if versionOlder stateVersion "22.05" then nextcloud22
else nextcloud23

@ -18,4 +18,4 @@ foldl
};
})
{ }
[ 21 22 23 ]
[ 22 23 ]

@ -33,23 +33,18 @@ let
};
};
in {
nextcloud20 = throw ''
Nextcloud v20 has been removed from `nixpkgs` as the support for it was dropped
by upstream in 2021-10. Please upgrade to at least Nextcloud v21 by declaring
nextcloud21 = throw ''
Nextcloud v21 has been removed from `nixpkgs` as the support for it was dropped
by upstream in 2022-02. Please upgrade to at least Nextcloud v22 by declaring
services.nextcloud.package = pkgs.nextcloud21;
services.nextcloud.package = pkgs.nextcloud22;
in your NixOS config.
WARNING: if you were on Nextcloud 19 on NixOS 21.05 you have to upgrade to Nextcloud 20
first on 21.05 because Nextcloud doesn't support upgrades accross multiple major versions!
WARNING: if you were on Nextcloud 20 on NixOS 21.11 you have to upgrade to Nextcloud 21
first on 21.11 because Nextcloud doesn't support upgrades accross multiple major versions!
'';
nextcloud21 = generic {
version = "21.0.9";
sha256 = "sha256-p6bvgTXmmjGN3TRQpG88f3YPksh0QzWG9j9KnEjcrqE=";
};
nextcloud22 = generic {
version = "22.2.5";
sha256 = "sha256-gb5N0u5tu4/nI2xIpjXwm2hiSDCrBhIDyN6gKGOsdS8=";

@ -8240,7 +8240,7 @@ with pkgs;
grocy = callPackage ../servers/grocy { };
inherit (callPackage ../servers/nextcloud {})
nextcloud20 nextcloud21 nextcloud22 nextcloud23;
nextcloud21 nextcloud22 nextcloud23;
nextcloud-client = libsForQt5.callPackage ../applications/networking/nextcloud-client { };

Loading…
Cancel
Save