nixpkgs/pkgs/common-updater/nix-update.nix

8 lines
154 B
Nix
Raw Normal View History

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