Simple Nix Flake template for the Bevy game engine using Crate2Nix.
- Builds dependanices individualy with Crate2Nix so they can be reused between builds.
- Uploads built crates to a binary cache server during CI/CD.
- Local builds will pull crates from the cache server meaning the same crate doesn't need to built more than once.
- Dev shell with everything needed to build using Cargo.
- Wayland support.
Running without cloning.
nix run github:justryanw/bevy-flake-template
Build with Nix.
# Clone and cd into repo
nix develop -c nom build # Nice build output ( can be skipped )
nix run
or enter dev environment and build using Cargo.
nix develop -c $SHELL # Use direnv to do this automatically
cargo run
- Not tested on MacOS.
- NixGL is needed to run using Nix on non NixOS systems.
nix run --impure github:guibou/nixGL -- nix run github:justryanw/bevy-flake-template