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 diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix index 4f53883cb77a..f391076900e4 100644 --- a/pkgs/shells/fish/default.nix +++ b/pkgs/shells/fish/default.nix @@ -327,7 +327,7 @@ let ${fish}/bin/fish ${fishScript} && touch $out ''; }; - updateScript = nix-update-script { attrPath = pname; }; + updateScript = nix-update-script { }; }; }; in diff --git a/pkgs/tools/package-management/nix-update/default.nix b/pkgs/tools/package-management/nix-update/default.nix index 45fbd7a6a1d7..8fa7ed61c53a 100644 --- a/pkgs/tools/package-management/nix-update/default.nix +++ b/pkgs/tools/package-management/nix-update/default.nix @@ -8,14 +8,14 @@ buildPythonApplication rec { pname = "nix-update"; - version = "0.11.0"; + version = "0.12.0"; format = "setuptools"; src = fetchFromGitHub { owner = "Mic92"; repo = pname; rev = version; - sha256 = "sha256-nBLNMQKLgx5m5VyxTdSLBE9kNhUPdaRzVi5BQx83m+4="; + sha256 = "sha256-7Co8mKG3eyM5WmGoAskyYleeutH4/kygSkvFpSg7Y04="; }; makeWrapperArgs = [