https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
5 lines
76 B
Nix
5 lines
76 B
Nix
{ nix-update }:
|
|
|
|
{ attrPath }:
|
|
|
|
[ "${nix-update}/bin/nix-update" attrPath ]
|