1 2 3 4 5 6 7
{ lib, nix-update }: { attrPath ? null , extraArgs ? [ ] }: [ "${lib.getExe nix-update}" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath