3
0
Fork 0
forked from mirrors/nixpkgs

nix-update-script: make attrPath optional

This commit is contained in:
figsoda 2022-12-25 11:31:33 -05:00
parent 001389279c
commit cb219cb6d7

View file

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