diff options
author | figsoda <figsoda@pm.me> | 2022-12-25 11:31:33 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-12-25 11:31:33 -0500 |
commit | cb219cb6d71955f9c14a19f59ec7e57be72d0271 (patch) | |
tree | 0d76267e813acc74d56436f54f1575480e1b6c40 /pkgs/common-updater/nix-update.nix | |
parent | 001389279cfd2cde7f0c6b5c39a087119079d9ec (diff) |
nix-update-script: make attrPath optional
Diffstat (limited to 'pkgs/common-updater/nix-update.nix')
-rw-r--r-- | pkgs/common-updater/nix-update.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/common-updater/nix-update.nix b/pkgs/common-updater/nix-update.nix index bb547302b79a9..269e1b6e64553 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 |