forked from mirrors/nixpkgs
wgpu-utils: fix build on Darwin
This commit is contained in:
parent
c92d1a55d3
commit
a88ca05577
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue