From ca641eb04b554d2cb463c93c948a003eae1dd901 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Mon, 16 Sep 2024 18:01:30 -0300 Subject: [PATCH] nix-update-script: nixfmt-rfc-style --- pkgs/by-name/ni/nix-update/nix-update-script.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 ]