Unverified Commit 58a0309a authored by Andrew Marshall's avatar Andrew Marshall Committed by GitHub
Browse files

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.
parent ce61cfae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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";