jong/devenv.nix

72 lines
1.8 KiB
Nix
Raw Normal View History

2026-02-07 20:18:17 -08:00
{
pkgs,
lib,
...
}: rec {
# https://devenv.sh/processes/
processes.lspmux.exec = "lspmux server";
processes.spacetimedb_start.exec = "spacetime start";
2026-02-13 08:16:41 -08:00
processes.spacetimedb_dev = {
exec = "just spacetime_dev";
# notify.enable = true;
# TODO features not yet supp???
# restart = "always";
# watch = {
# paths = [./jong];
# };
};
processes.tail_log.exec = "tail -f jong.log";
2026-02-07 20:18:17 -08:00
# https://devenv.sh/packages/
packages = with pkgs; [
2026-02-20 15:36:04 -08:00
lspmux
2026-02-07 20:18:17 -08:00
pkg-config
# spacetimedb
openssl
binaryen
2026-02-22 00:39:51 -08:00
# spacetimedb
2026-02-07 20:18:17 -08:00
# 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";
2026-03-08 19:57:39 -07:00
# env.RUST_BACKTRACE = "full";
2026-02-07 20:18:17 -08:00
# 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"];
};
process.manager.implementation = "mprocs";
process.managers.mprocs.settings = {
server = "127.0.0.1:4050";
2026-02-07 20:18:17 -08:00
};
# 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/
}