mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
8 lines
154 B
Nix
8 lines
154 B
Nix
{ lib, nix-update }:
|
|
|
|
{ attrPath ? null
|
|
, extraArgs ? [ ]
|
|
}:
|
|
|
|
[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath
|