core/pkgs/common-updater/nix-update.nix
2024-06-30 09:16:52 +01:00

9 lines
154 B
Nix

{ lib, nix-update }:
{
attrPath ? null,
extraArgs ? [ ],
}:
[ "${lib.getExe nix-update}" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath