From 4976cf3cbbd7d05c3095ca635e9664695574f397 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 30 Apr 2024 18:32:06 +0200 Subject: [PATCH] blender: do not build on x86_64-darwin Blender (specifically the ghost window library) depends on "metal" on apple devices. (For details see source/intern/ghost/intern/GHOST_System.cc line 416ff) It will and cannot build without it. Metal support should be introduced by apple sdk 11_2 onward. Once this has been updated in nixpkgs, this derivation can be revised. --- pkgs/applications/misc/blender/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/blender/default.nix b/pkgs/applications/misc/blender/default.nix index b754ae892873740..1b11f925da84e15 100644 --- a/pkgs/applications/misc/blender/default.nix +++ b/pkgs/applications/misc/blender/default.nix @@ -385,7 +385,8 @@ stdenv.mkDerivation (finalAttrs: { license = with lib.licenses; [ gpl2Plus ] ++ lib.optional cudaSupport unfree; platforms = [ "aarch64-linux" - "x86_64-darwin" + # the current apple sdk is too old (currently 11_0) and fails to build "metal" on x86_64-darwin + # "x86_64-darwin" "x86_64-linux" "aarch64-darwin" ];