blender: Fix CUDA support

CUDA toolkit 8 doesn't support gcc 6, so we have to build opensubdiv
and blender with gcc 5.
This commit is contained in:
Eelco Dolstra
2017-09-16 22:38:31 +02:00
parent bb1c9b027d
commit afc0218ecd
3 changed files with 10 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
{ lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig, xorg, mesa_glu
{ lib, stdenv, stdenv_gcc5, fetchurl, fetchFromGitHub, cmake, pkgconfig, xorg, mesa_glu
, mesa_noglu, glew, ocl-icd, python3
, cudaSupport ? false, cudatoolkit
}:
stdenv.mkDerivation rec {
(if cudaSupport then stdenv_gcc5 else stdenv).mkDerivation rec {
name = "opensubdiv-${version}";
version = "3.2.0";