diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2022-07-10 09:30:56 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2022-07-21 17:03:54 -0400 |
commit | a88ca0557741c7a193490d803ad448695c5f9b70 (patch) | |
tree | 36e9d1dcde27103d4ce6ceb4e78a08fdd22f5725 /pkgs/tools/graphics/wgpu-utils | |
parent | c92d1a55d368dc71cbfd4a17065e22a1032454f0 (diff) |
wgpu-utils: fix build on Darwin
Diffstat (limited to 'pkgs/tools/graphics/wgpu-utils')
-rw-r--r-- | pkgs/tools/graphics/wgpu-utils/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/wgpu-utils/default.nix b/pkgs/tools/graphics/wgpu-utils/default.nix index 737f7132212c4..ab5eac27315a9 100644 --- a/pkgs/tools/graphics/wgpu-utils/default.nix +++ b/pkgs/tools/graphics/wgpu-utils/default.nix @@ -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; |