summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xmaintainers/scripts/update.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintainers/scripts/update.nix b/maintainers/scripts/update.nix
index 23ea11b66e1..492000a1037 100755
--- a/maintainers/scripts/update.nix
+++ b/maintainers/scripts/update.nix
@@ -32,8 +32,8 @@ let
           (name: pkg:
             let
               result = builtins.tryEval (
-                if lib.isDerivation pkg && cond name pkg
-                  then [(return name pkg)]
+                if lib.isDerivation pkg
+                  then lib.optional (cond name pkg) (return name pkg)
                 else if pkg.recurseForDerivations or false || pkg.recurseForRelease or false
                   then packagesWith cond return pkg
                 else []