{pkgs ? import {}}: let runtimeLibs = with pkgs; [ wayland libxkbcommon libGL vulkan-loader libx11 libxcursor libxrandr libxi ]; in pkgs.mkShell { buildInputs = [ pkgs.rustc pkgs.cargo pkgs.rustfmt pkgs.clippy pkgs.rust-analyzer pkgs.pkg-config ] ++ runtimeLibs; env = { LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath runtimeLibs; }; shellHook = '' export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath runtimeLibs}:$LD_LIBRARY_PATH" echo "[shell.nix] Legacy shell for Rust dev. Use 'nix develop' for full flake support." ''; }