blender: use stdenv from cudaPackages when building with CUDA (#368896)

Otherwise stdenv may have an incompatible compiler, as is currently the
case, so this fixes the build with cudaSupport.

authored by Andrew Marshall and committed by GitHub 58a0309a ce61cfae

+3 -1
+3 -1
pkgs/applications/misc/blender/default.nix
··· 88 }: 89 90 let 91 embreeSupport = 92 (!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin; 93 openImageDenoiseSupport = ··· 110 }; 111 in 112 113 - stdenv.mkDerivation (finalAttrs: { 114 pname = "blender"; 115 version = "4.3.2"; 116
··· 88 }: 89 90 let 91 + stdenv' = if cudaSupport then cudaPackages.backendStdenv else stdenv; 92 + 93 embreeSupport = 94 (!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin; 95 openImageDenoiseSupport = ··· 112 }; 113 in 114 115 + stdenv'.mkDerivation (finalAttrs: { 116 pname = "blender"; 117 version = "4.3.2"; 118