From 9a795032e623e730a7cf50168f9d6e73a2ca7af6 Mon Sep 17 00:00:00 2001 From: Joseph Price Date: Mon, 29 Jun 2026 18:01:27 +0100 Subject: [PATCH] nextcloud*: enable structuredAttrs, strictDeps Fixes: ``` - Attribute `pkgs.nextcloud34` is a new package with `strictDeps` unset or set to `false`. Please enable `strictDeps = true;` in pkgs/top-level/all-packages.nix. (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-164) - Attribute `pkgs.nextcloud34` is a new package with `__structuredAttrs` unset or set to `false`. Please enable `__structuredAttrs = true;` in pkgs/top-level/all-packages.nix. (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-166) ``` --- pkgs/servers/nextcloud/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/servers/nextcloud/default.nix b/pkgs/servers/nextcloud/default.nix index 392485f78891..1dfc72df8b59 100644 --- a/pkgs/servers/nextcloud/default.nix +++ b/pkgs/servers/nextcloud/default.nix @@ -20,18 +20,14 @@ let pname = "nextcloud"; inherit version; + __structuredAttrs = true; + strictDeps = true; + src = fetchurl { url = "https://download.nextcloud.com/server/releases/nextcloud-${version}.tar.bz2"; inherit hash; }; - passthru = { - tests = lib.filterAttrs ( - key: _: (lib.hasSuffix (lib.versions.major version) key) - ) nixosTests.nextcloud; - inherit packages; - }; - installPhase = '' runHook preInstall mkdir -p $out/ @@ -39,6 +35,13 @@ let runHook postInstall ''; + passthru = { + tests = lib.filterAttrs ( + key: _: (lib.hasSuffix (lib.versions.major version) key) + ) nixosTests.nextcloud; + inherit packages; + }; + meta = { changelog = "https://nextcloud.com/changelog/#${lib.replaceStrings [ "." ] [ "-" ] version}"; description = "Sharing solution for files, calendars, contacts and more";