about summary refs log tree commit diff
path: root/pkgs/tools/graphics/wgpu-utils
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2022-07-10 09:30:56 -0400
committerRandy Eckenrode <randy@largeandhighquality.com>2022-07-21 17:03:54 -0400
commita88ca0557741c7a193490d803ad448695c5f9b70 (patch)
tree36e9d1dcde27103d4ce6ceb4e78a08fdd22f5725 /pkgs/tools/graphics/wgpu-utils
parentc92d1a55d368dc71cbfd4a17065e22a1032454f0 (diff)
wgpu-utils: fix build on Darwin
Diffstat (limited to 'pkgs/tools/graphics/wgpu-utils')
-rw-r--r--pkgs/tools/graphics/wgpu-utils/default.nix4
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;