nixpkgs-suyu/pkgs/common-updater/nix-update.nix
2022-12-25 11:31:33 -05:00

7 lines
154 B
Nix

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