Skip to content

justryanw/bevy-flake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bevy Flake Template

Simple Nix Flake template for the Bevy game engine using Crate2Nix.

Features

  • 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.

Usage

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

Issues / Limitations

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published