mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
nix-update-script: make attrPath optional
This commit is contained in:
parent
001389279c
commit
cb219cb6d7
@ -1,7 +1,7 @@
|
||||
{ nix-update }:
|
||||
{ lib, nix-update }:
|
||||
|
||||
{ attrPath
|
||||
, extraArgs ? []
|
||||
{ attrPath ? null
|
||||
, extraArgs ? [ ]
|
||||
}:
|
||||
|
||||
[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ [ attrPath ]
|
||||
[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath
|
||||
|
Loading…
Reference in New Issue
Block a user