ark/doc/flk/update.md
Timothy DeHerrera d51cd34fb7
subflakes: make first class citizens
Subflakes should provide their wares as outputs, so wire up the pkgs
flake to reflect that.

Due to the unstable nature of flakes, updating the root flake doesn't
currently update the subflake lock file. Therefore, add additional
logic to flk update script in order to do this behind the scenes.

Nix is now pulled in from the "nix" registry flake in order for users
to take advantage of improvements to the UI since its last update in
nixpkgs.
2021-03-14 21:27:58 -06:00

546 B

update

The update subcommand is a simple alias for:

nix flake update

As it sounds, this will update your lock file.

Updating Package Sources

If you pass directory name then it will update that input if the directory contains a flake.nix, with an optional arguement to update only a specific input in the subflake.

For example, you can update any package sources you may have declared in pkgs/flake.nix:

flk update pkgs

or just its nixpkgs:

flk update pkgs nixpkgs