{ pkgs ? import {}, lib ? pkgs.stdenv.lib }: pkgs.mkShell rec { buildInputs = with pkgs;[ # Rust rustup # shaderc shaderc.bin shaderc.lib # Build script dependencies gcc pkg-config # Necessary X11 libraries xorg.libX11 xorg.libXcursor xorg.libXrandr xorg.libXi # Vulkan vulkan-tools vulkan-loader vulkan-validation-layers # Optional, but useful for debugging renderdoc lldb ]; VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; VK_LAYER_PATH = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d"; LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; SHADERC_LIB_DIR = "${pkgs.shaderc.lib}/lib/"; }