{ lib, pkgs, rustPlatform, name, }: (rustPlatform.buildRustPackage { inherit name; buildInputs = with pkgs; [ dbus openssl ]; nativeBuildInputs = with pkgs; [ pkg-config vulkan-loader SDL2 SDL2_ttf ]; src = lib.cleanSource ./.; cargoLock = { lockFile = ./Cargo.lock; }; # Make sure the vulkan libraries get patched in properly postFixup = '' patchelf --add-rpath ${pkgs.vulkan-loader}/lib $out/bin/* ''; })