about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/common-updater/nix-update.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/common-updater/nix-update.nix b/pkgs/common-updater/nix-update.nix
index bb547302b79a..269e1b6e6455 100644
--- a/pkgs/common-updater/nix-update.nix
+++ b/pkgs/common-updater/nix-update.nix
@@ -1,7 +1,7 @@
-{ nix-update }:
+{ lib, nix-update }:
 
-{ attrPath
-, extraArgs ? []
+{ attrPath ? null
+, extraArgs ? [ ]
 }:
 
-[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ [ attrPath ]
+[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath