15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 hash = "sha256-Gtq0xYZoWNwW+BKVLqVVKGqc+4HjaD7NN1hlzyFP5g0=";
27 lockFile = ./Cargo.lock;
29 "noise-0.8.2" = "sha256-7GvShJeSNfwMCBIfqLghXgKQv7EDMqVchJw0uxPhNr4=";
30 "rspirv-0.11.0+sdk-1.2.198" = "sha256-AcJqkcXBr/+SHdUDXd63sQ0h5eosMqRhV4aUREJH8Bw=";
45 ++ lib.optionals stdenv.hostPlatform.isDarwin (
46 with darwin.apple_sdk.frameworks;
54 # Tests fail, as the Nix sandbox doesn't provide an appropriate adapter (e.g. Vulkan).
58 wrapProgram $out/bin/wgpu-info \
59 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
63 description = "Safe and portable GPU abstraction in Rust, implementing WebGPU API";
64 homepage = "https://wgpu.rs/";
65 license = with licenses; [
69 maintainers = with maintainers; [ erictapen ];
70 mainProgram = "wgpu-info";