From cb219cb6d71955f9c14a19f59ec7e57be72d0271 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 25 Dec 2022 11:31:33 -0500 Subject: nix-update-script: make attrPath optional --- pkgs/common-updater/nix-update.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs/common-updater/nix-update.nix') 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 -- cgit 1.4.1