pub-solar-os/doc/flk/update.md

23 lines
554 B
Markdown
Raw Normal View History

2021-02-15 00:41:15 +00:00
# update
The `update` subcommand is a simple alias for:
```sh
nix flake update
2021-02-15 00:41:15 +00:00
```
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
2021-04-19 02:26:27 +00:00
[package sources](../outputs/pkgs.md#automatic-source-updates) you may have
declared in _pkgs/flake.nix_:
```sh
flk update pkgs
```
or just its _nixpkgs_:
```sh
flk update pkgs nixpkgs
```