nix-update-script: add extraArgs to pass custom arguments to nix-update

This commit is contained in:
schnusch 2022-11-23 23:21:27 +01:00
parent 457b8403c1
commit f5d62d419e

View File

@ -1,5 +1,7 @@
{ nix-update }: { nix-update }:
{ attrPath }: { attrPath
, extraArgs ? []
}:
[ "${nix-update}/bin/nix-update" attrPath ] [ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ [ attrPath ]