From f5d62d419e86249c9910f43d6d6c4e9c156d3ac3 Mon Sep 17 00:00:00 2001 From: schnusch Date: Wed, 23 Nov 2022 23:21:27 +0100 Subject: nix-update-script: add extraArgs to pass custom arguments to nix-update --- pkgs/common-updater/nix-update.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/common-updater/nix-update.nix b/pkgs/common-updater/nix-update.nix index 13b85bf52ff..bb547302b79 100644 --- a/pkgs/common-updater/nix-update.nix +++ b/pkgs/common-updater/nix-update.nix @@ -1,5 +1,7 @@ { nix-update }: -{ attrPath }: +{ attrPath +, extraArgs ? [] +}: -[ "${nix-update}/bin/nix-update" attrPath ] +[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ [ attrPath ] -- cgit 1.4.1