2024-03-20 01:40:08 +00:00
|
|
|
let
|
2024-04-05 03:58:59 +00:00
|
|
|
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"
|
|
|
|
];
|
2024-03-31 14:56:04 +00:00
|
|
|
};
|
2024-03-20 01:40:08 +00:00
|
|
|
in
|
2024-04-05 03:58:59 +00:00
|
|
|
pkgs.mkShell.override {
|
|
|
|
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
|
|
|
|
} rec {
|
|
|
|
buildInputs = [
|
|
|
|
rust
|
|
|
|
] ++ (with pkgs; [
|
2024-04-27 04:52:47 +00:00
|
|
|
cargo-expand
|
2024-04-05 03:58:59 +00:00
|
|
|
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;
|
|
|
|
}
|