diff --git a/pkgs/by-name/ni/nix-update/nix-update-script.nix b/pkgs/by-name/ni/nix-update/nix-update-script.nix index 342b1677c6de..82da510d5061 100644 --- a/pkgs/by-name/ni/nix-update/nix-update-script.nix +++ b/pkgs/by-name/ni/nix-update/nix-update-script.nix @@ -1,7 +1,11 @@ -{ lib, nix-update }: - -{ attrPath ? null -, extraArgs ? [ ] +{ + lib, + nix-update, }: -[ "${lib.getExe nix-update}" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath +{ + attrPath ? null, + extraArgs ? [ ], +}: + +[ "${lib.getExe nix-update}" ] ++ extraArgs ++ lib.optionals (attrPath != null) [ attrPath ]