No description
Find a file
2024-03-17 04:57:39 +01:00
.cargo Nix stuff 2024-03-17 04:57:39 +01:00
assets Nix stuff 2024-03-17 04:57:39 +01:00
src initiall commit + character controller groundwork 2024-03-16 10:21:05 +01:00
.envrc Nix stuff 2024-03-17 04:57:39 +01:00
.gitignore Nix stuff 2024-03-17 04:57:39 +01:00
Cargo.lock Nix stuff 2024-03-17 04:57:39 +01:00
Cargo.toml Nix stuff 2024-03-17 04:57:39 +01:00
flake.lock Nix stuff 2024-03-17 04:57:39 +01:00
flake.nix Nix stuff 2024-03-17 04:57:39 +01:00
README.md Nix stuff 2024-03-17 04:57:39 +01:00

Bevy Flake Template

Simple flake template for the Bevy game engine using Naersk.

Usage

Running without cloning

nix run github:justryanw/bevy-flake-template

Build with nix

# Clone and cd into repo
nix build
# Or
nix run # Runs client in release mode by default

Use dev or release profiles

nix run .#dev
nix run .#release

or enter dev environment and build using cargo

nix develop -c $SHELL # Use direnv to do this automatically
cargo run

Issues / Limitations

  • Workaround needed for multiple binaries (e.g. client/server), look at the multiple-binaries branch
  • Not setup for MacOS yet.
  • NixGL is needed to run on non NixOS systems
nix run --impure github:guibou/nixGL -- nix run