docs(nix): update nix commands to match latest nix changes

This commit is contained in:
Yusuf Bera Ertan 2021-03-27 12:41:35 +03:00
parent b4840ce48d
commit 6c13cf930e
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -33,7 +33,7 @@ nix run gitlab:veloren/veloren
# Server CLI: # Server CLI:
nix run gitlab:veloren/veloren#veloren-server-cli nix run gitlab:veloren/veloren#veloren-server-cli
# or if you have a local repo # or if you have a local repo
nix run . nix run
nix run .#veloren-server-cli nix run .#veloren-server-cli
``` ```
@ -44,7 +44,7 @@ nix profile install gitlab:veloren/veloren
# Server CLI: # Server CLI:
nix profile install giltab:veloren/veloren#veloren-server-cli nix profile install giltab:veloren/veloren#veloren-server-cli
# or if you have a local repo: # or if you have a local repo:
nix profile install . nix profile install
nix profile install .#veloren-server-cli nix profile install .#veloren-server-cli
``` ```
@ -172,12 +172,9 @@ cp nix/envrc .envrc
If a specific revision is specified in `flake.nix`, you will have to update that first, either by specifying a new desired revision or by removing it. If a specific revision is specified in `flake.nix`, you will have to update that first, either by specifying a new desired revision or by removing it.
You can update the dependencies individually or all at once from the root of the project: You can update dependencies with:
```shell ```shell
# only nixpkgs nix flake update
nix flake update --update-input nixpkgs
# everything
nix flake update --recreate-lock-file
``` ```
### Without flakes ### Without flakes