nix: add bundle subcommand usage

This commit is contained in:
Yusuf Bera Ertan 2020-12-12 17:03:51 +03:00
parent 9e62a6c322
commit 64812249ad
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -126,6 +126,20 @@ To enter a shell environment with the necessary tools:
nix develop
```
You can use the `bundle` subcommand to bundle the game into a single distro-agnostic executable file:
```shell
## bundling latest commit to master
# Voxygen:
nix bundle gitlab:veloren/veloren
# Server CLI:
nix bundle gitlab:veloren/veloren#veloren-server-cli
## for local repo:
# Voxygen:
nix bundle .#veloren-voxygen
# Server CLI:
nix bundle .#veloren-server-cli
```
### Without flakes
To enter the development shell: