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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user