[26.05] nextcloud35: init at 35.0.0 (#565152)

This commit is contained in:
Maximilian Bosch
2026-09-20 09:07:58 +00:00
committed by GitHub
7 changed files with 439 additions and 4 deletions

View File

@@ -45,4 +45,3 @@
### Additions and Improvements {#sec-nixpkgs-release-26.11-lib-additions-improvements}
- Create the first release note entry in this section!

View File

@@ -5,7 +5,7 @@ self-hostable cloud platform. The server setup can be automated using
[services.nextcloud](#opt-services.nextcloud.enable). A
desktop client is packaged at `pkgs.nextcloud-client`.
The current default by NixOS is `nextcloud34` which is also the latest
The current default by NixOS is `nextcloud35` which is also the latest
major version available.
## Basic usage {#module-services-nextcloud-basic-usage}

View File

@@ -467,6 +467,8 @@ in
relatedPackages = [
"nextcloud32"
"nextcloud33"
"nextcloud34"
"nextcloud35"
];
};
phpPackage = lib.mkPackageOption pkgs "php" {
@@ -1195,7 +1197,7 @@ in
{
warnings =
let
latest = 33;
latest = 35;
upgradeWarning = major: nixos: ''
A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
@@ -1228,7 +1230,9 @@ in
++ (lib.optional (lib.versionOlder cfg.package.version "30") (upgradeWarning 29 "24.11"))
++ (lib.optional (lib.versionOlder cfg.package.version "31") (upgradeWarning 30 "25.05"))
++ (lib.optional (lib.versionOlder cfg.package.version "32") (upgradeWarning 31 "25.11"))
++ (lib.optional (lib.versionOlder cfg.package.version "33") (upgradeWarning 32 "26.05"));
++ (lib.optional (lib.versionOlder cfg.package.version "33") (upgradeWarning 32 "26.05"))
++ (lib.optional (lib.versionOlder cfg.package.version "34") (upgradeWarning 33 "26.05"))
++ (lib.optional (lib.versionOlder cfg.package.version "35") (upgradeWarning 34 "26.05"));
services.nextcloud.package = lib.mkDefault (
if pkgs ? nextcloud then

View File

@@ -150,5 +150,6 @@ listToAttrs (
32
33
34
35
]
)

View File

@@ -6,6 +6,7 @@
nextcloud32Packages,
nextcloud33Packages,
nextcloud34Packages,
nextcloud35Packages,
}:
let
@@ -74,6 +75,12 @@ in
packages = nextcloud34Packages;
};
nextcloud35 = generic {
version = "35.0.0";
hash = "sha256-2MFl52SnpN6C6z3sUQ1m4Z8tgiGFcmBK+cFdmamKKaA=";
packages = nextcloud35Packages;
};
# tip: get the sha with:
# curl "https://download.nextcloud.com/server/releases/nextcloud-${version}.tar.bz2.sha512" | grep '.tar.bz2' | cut -f1 -d' ' | xargs nix hash convert --hash-algo sha512 --to sri
}

File diff suppressed because one or more lines are too long

View File

@@ -2750,11 +2750,13 @@ with pkgs;
nextcloud32
nextcloud33
nextcloud34
nextcloud35
;
nextcloud32Packages = callPackage ../servers/nextcloud/packages { ncVersion = "32"; };
nextcloud33Packages = callPackage ../servers/nextcloud/packages { ncVersion = "33"; };
nextcloud34Packages = callPackage ../servers/nextcloud/packages { ncVersion = "34"; };
nextcloud35Packages = callPackage ../servers/nextcloud/packages { ncVersion = "35"; };
nextcloud-notify_push = callPackage ../servers/nextcloud/notify_push.nix { };