core/pkgs/common-updater/nix-update.nix
2024-05-13 11:34:52 -04:00

8 lines
150 B
Nix

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