1
Fork 0

dart(freeform-gradient): Add Documentation on how to update the environment

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
nanashi0x74 2020-10-19 14:11:31 +02:00 committed by prescientmoon
parent d4cce2b654
commit c2c48d2cdb
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -47,6 +47,18 @@ in pkgs.mkShell {
After this, enter into your nix-shell and you are good to go. After this, enter into your nix-shell and you are good to go.
## Updating
### To update the whole environment, do the following in order:
- `niv init` will update nix/sources.nix if a new one is available
- backup your nix/sources.json: `cp nix/sources.json nix/sources.json.bak`
- `niv update` will update sources.json i.e. your version of nixpkgs used in this environment
- you may need to edit nix/android.nix if any of the attributes in there can't be found after this.
- `direnv reload` will rebuild/reload your environment (may not be necessary if it automatically reloads)
- alternatively, run `nix-shell` again (?)
- `flutter packages update` to update flutter/dart packages and get rid of the warning that you're using a different version of flutter than what was last referenced
## Global install ## Global install
If you want to install `flutter` on your system, add this to your `/etc/nixos/configuration.nix`: If you want to install `flutter` on your system, add this to your `/etc/nixos/configuration.nix`: