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 88 }: 89 89 90 90 let 91 + stdenv' = if cudaSupport then cudaPackages.backendStdenv else stdenv; 92 + 91 93 embreeSupport = 92 94 (!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin; 93 95 openImageDenoiseSupport = ··· 110 112 }; 111 113 in 112 114 113 - stdenv.mkDerivation (finalAttrs: { 115 + stdenv'.mkDerivation (finalAttrs: { 114 116 pname = "blender"; 115 117 version = "4.3.2"; 116 118