3
0
Fork 0
forked from mirrors/nixpkgs

wgpu-utils: fix build on Darwin

This commit is contained in:
Randy Eckenrode 2022-07-10 09:30:56 -04:00
parent c92d1a55d3
commit a88ca05577
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, pkg-config, makeWrapper, vulkan-loader }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, makeWrapper, vulkan-loader, QuartzCore }:
rustPlatform.buildRustPackage rec {
pname = "wgpu-utils";
@ -18,6 +18,8 @@ rustPlatform.buildRustPackage rec {
makeWrapper
];
buildInputs = lib.optional stdenv.isDarwin QuartzCore;
# Tests fail, as the Nix sandbox doesn't provide an appropriate adapter (e.g. Vulkan).
doCheck = false;

View file

@ -11999,7 +11999,9 @@ with pkgs;
});
};
wgpu-utils = callPackage ../tools/graphics/wgpu-utils { };
wgpu-utils = callPackage ../tools/graphics/wgpu-utils {
inherit (darwin.apple_sdk.frameworks) QuartzCore;
};
wg-bond = callPackage ../applications/networking/wg-bond { };