initial setuo
This commit is contained in:
commit
31630d0842
5 changed files with 5143 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/target
|
||||
5067
Cargo.lock
generated
Normal file
5067
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "bevy_test"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
|
||||
[dependencies]
|
||||
bevy = "0.16.1"
|
||||
59
flake.nix
Normal file
59
flake.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
description = "Bevy project with Rust and dependencies via nixpkgs and oxalica/rust-overlay";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
rust-overlay,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
rustToolchain = pkgs.rust-bin.stable.latest.default;
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
rustToolchain
|
||||
pkgs.pkg-config
|
||||
pkgs.alsa-lib
|
||||
pkgs.udev
|
||||
pkgs.vulkan-loader
|
||||
pkgs.vulkan-tools
|
||||
pkgs.xorg.libX11
|
||||
pkgs.xorg.libXcursor
|
||||
pkgs.xorg.libXi
|
||||
pkgs.xorg.libXrandr
|
||||
pkgs.xorg.libXxf86vm
|
||||
pkgs.xorg.libXinerama
|
||||
pkgs.xorg.libXext
|
||||
pkgs.xorg.libxcb
|
||||
pkgs.xorg.libXrender
|
||||
pkgs.xorg.libXfixes
|
||||
pkgs.xorg.libXau
|
||||
pkgs.xorg.libXdmcp
|
||||
pkgs.mesa
|
||||
pkgs.libGL
|
||||
pkgs.wayland
|
||||
pkgs.dbus
|
||||
pkgs.libxkbcommon
|
||||
pkgs.fontconfig
|
||||
pkgs.freetype
|
||||
pkgs.zlib
|
||||
pkgs.openssl
|
||||
];
|
||||
RUST_BACKTRACE = 1;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
8
src/main.rs
Normal file
8
src/main.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
use bevy::prelude::*;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.run();
|
||||
}
|
||||
Loading…
Reference in a new issue