lyra-engine/shell.nix

30 lines
880 B
Nix
Raw Normal View History

let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rust = (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override {
extensions = [
"rust-analyzer"
"rust-src"
"miri-preview"
];
};
in
pkgs.mkShell.override {
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
} rec {
buildInputs = [
rust
] ++ (with pkgs; [
pkg-config openssl udev
wasm-pack trunk
heaptrack valgrind
lua5_4_compat
alsa-lib libGL
vulkan-loader vulkan-headers vulkan-tools
libxkbcommon wayland # To use the wayland feature
xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr # To use the x11 feature
]);
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
#RUST_BACKTRACE = 1;
}