veloren/nix/README.md

592 B

How to use

To build Voxygen, run: nix build

To build another binary, run: nix build --arg crateName "<binary name here>"

To enter the development shell, run: nix-shell shell.nix

Managing Cargo.nix

Enter the development shell.

To update Cargo.nix (and crate-hashes.json) using latest Cargo.lock, run: crate2nix generate -f ../Cargo.toml

Managing dependencies

We use niv to manage dependencies.

Enter the development shell in repository root: cd .. && nix-shell nix/shell.nix

To update the dependencies, run: niv update