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.
This commit is contained in:
Andrew Marshall
2024-12-30 20:43:53 -05:00
committed by GitHub
parent ce61cfaeed
commit 58a0309aee
+3 -1
View File
@@ -88,6 +88,8 @@
}:
let
stdenv' = if cudaSupport then cudaPackages.backendStdenv else stdenv;
embreeSupport =
(!stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) || stdenv.hostPlatform.isDarwin;
openImageDenoiseSupport =
@@ -110,7 +112,7 @@ let
};
in
stdenv.mkDerivation (finalAttrs: {
stdenv'.mkDerivation (finalAttrs: {
pname = "blender";
version = "4.3.2";