58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
|
|
{
|
||
|
|
pkgs,
|
||
|
|
lib,
|
||
|
|
config,
|
||
|
|
inputs,
|
||
|
|
...
|
||
|
|
}: rec {
|
||
|
|
# https://devenv.sh/packages/
|
||
|
|
packages = with pkgs; [
|
||
|
|
pkg-config
|
||
|
|
|
||
|
|
# spacetimedb
|
||
|
|
openssl
|
||
|
|
binaryen
|
||
|
|
|
||
|
|
# bevy Linux
|
||
|
|
# Audio (Linux only)
|
||
|
|
alsa-lib
|
||
|
|
# Cross Platform 3D Graphics API
|
||
|
|
vulkan-loader
|
||
|
|
# For debugging around vulkan
|
||
|
|
vulkan-tools
|
||
|
|
# Other dependencies
|
||
|
|
libudev-zero
|
||
|
|
xorg.libX11
|
||
|
|
xorg.libXcursor
|
||
|
|
xorg.libXi
|
||
|
|
xorg.libXrandr
|
||
|
|
libxkbcommon
|
||
|
|
wayland
|
||
|
|
];
|
||
|
|
env.LD_LIBRARY_PATH = lib.makeLibraryPath packages;
|
||
|
|
env.RUST_LOG = "jong=trace";
|
||
|
|
|
||
|
|
# https://devenv.sh/languages/
|
||
|
|
languages.rust = {
|
||
|
|
enable = true;
|
||
|
|
channel = "nightly";
|
||
|
|
version = "latest";
|
||
|
|
targets = ["x86_64-unknown-linux-gnu" "wasm32-unknown-unknown"];
|
||
|
|
components = ["rust-src" "rust-docs" "rustc-codegen-cranelift" "rust-analyzer" "rustfmt"];
|
||
|
|
};
|
||
|
|
|
||
|
|
# https://devenv.sh/processes/
|
||
|
|
processes.spacetimedb_start.exec = "spacetime start";
|
||
|
|
processes.spacetimedb_generate_bindings = {
|
||
|
|
exec = "spacetime dev --module-bindings-path module_bindings jongline";
|
||
|
|
};
|
||
|
|
|
||
|
|
# https://devenv.sh/services/
|
||
|
|
# https://devenv.sh/scripts/
|
||
|
|
# https://devenv.sh/basics/
|
||
|
|
# https://devenv.sh/tasks/
|
||
|
|
# https://devenv.sh/tests/
|
||
|
|
# https://devenv.sh/git-hooks/
|
||
|
|
# See full reference at https://devenv.sh/reference/options/
|
||
|
|
}
|