veloren/nix
2020-08-18 16:51:25 +02:00
..
.envrc nix: regenerate Cargo.nix, update dependencies, some tweaks for better reproducibility, remove rustup from shell.nix (causes issues) and add rustc, cargo instead 2020-07-16 13:40:39 +00:00
Cargo.nix fieed and updated nix 2020-08-18 16:51:25 +02:00
crate-hashes.json nix: regenerate Cargo.nix and update niv dependencies 2020-08-10 17:20:52 +03:00
default.nix fieed and updated nix 2020-08-18 16:51:25 +02:00
nixpkgs.nix fieed and updated nix 2020-08-18 16:51:25 +02:00
README.md nix: Add nixfmt package to shell.nix, update readme 2020-06-23 20:51:32 +03:00
shell.nix nix: regenerate Cargo.nix, update dependencies, some tweaks for better reproducibility, remove rustup from shell.nix (causes issues) and add rustc, cargo instead 2020-07-16 13:40:39 +00:00
sources.json fieed and updated nix 2020-08-18 16:51:25 +02:00
sources.nix nix: regenerate Cargo.nix, update dependencies, some tweaks for better reproducibility, remove rustup from shell.nix (causes issues) and add rustc, cargo instead 2020-07-16 13:40:39 +00:00

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 (which includes all tools mentioned in this readme), 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

Formatting

Use nixfmt to format files.

To format every file: nixfmt *.nix