devenv
This commit is contained in:
parent
c86f8d93f1
commit
004aafd4ba
7 changed files with 231 additions and 11 deletions
57
devenv.nix
Normal file
57
devenv.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
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/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue