treewide: use default compiler for cuda
This commit is contained in:
parent
85d3c00dce
commit
378bfba023
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, stdenv_gcc5, lib, fetchurl, boost, cmake, ffmpeg, gettext, glew
|
{ stdenv, lib, fetchurl, boost, cmake, ffmpeg, gettext, glew
|
||||||
, ilmbase, libXi, libX11, libXext, libXrender
|
, ilmbase, libXi, libX11, libXext, libXrender
|
||||||
, libjpeg, libpng, libsamplerate, libsndfile
|
, libjpeg, libpng, libsamplerate, libsndfile
|
||||||
, libtiff, mesa, openal, opencolorio, openexr, openimageio, openjpeg_1, python
|
, libtiff, mesa, openal, opencolorio, openexr, openimageio, openjpeg_1, python
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
(if cudaSupport then stdenv_gcc5 else stdenv).mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "blender-2.79";
|
name = "blender-2.79";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
, enableGStreamer ? false, gst_all_1
|
, enableGStreamer ? false, gst_all_1
|
||||||
, enableEigen ? true, eigen
|
, enableEigen ? true, eigen
|
||||||
, enableOpenblas ? true, openblas
|
, enableOpenblas ? true, openblas
|
||||||
, enableCuda ? false, cudatoolkit, gcc5
|
, enableCuda ? false, cudatoolkit
|
||||||
, enableTesseract ? false, tesseract, leptonica
|
, enableTesseract ? false, tesseract, leptonica
|
||||||
, AVFoundation, Cocoa, QTKit
|
, AVFoundation, Cocoa, QTKit
|
||||||
}:
|
}:
|
||||||
|
@ -145,7 +145,7 @@ stdenv.mkDerivation rec {
|
||||||
# simply enabled automatically if contrib is built, and it detects
|
# simply enabled automatically if contrib is built, and it detects
|
||||||
# tesseract & leptonica.
|
# tesseract & leptonica.
|
||||||
++ lib.optionals enableTesseract [ tesseract leptonica ]
|
++ lib.optionals enableTesseract [ tesseract leptonica ]
|
||||||
++ lib.optionals enableCuda [ cudatoolkit gcc5 ]
|
++ lib.optional enableCuda cudatoolkit
|
||||||
++ lib.optional buildContrib protobuf
|
++ lib.optional buildContrib protobuf
|
||||||
++ lib.optionals stdenv.isDarwin [ AVFoundation Cocoa QTKit ];
|
++ lib.optionals stdenv.isDarwin [ AVFoundation Cocoa QTKit ];
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ lib, stdenv, stdenv_gcc5, fetchurl, fetchFromGitHub, cmake, pkgconfig, xorg, mesa_glu
|
{ lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig, xorg, mesa_glu
|
||||||
, mesa_noglu, glew, ocl-icd, python3
|
, mesa_noglu, glew, ocl-icd, python3
|
||||||
, cudaSupport ? false, cudatoolkit
|
, cudaSupport ? false, cudatoolkit
|
||||||
}:
|
}:
|
||||||
|
|
||||||
(if cudaSupport then stdenv_gcc5 else stdenv).mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "opensubdiv-${version}";
|
name = "opensubdiv-${version}";
|
||||||
version = "3.2.0";
|
version = "3.2.0";
|
||||||
|
|
||||||
|
|
|
@ -10076,7 +10076,6 @@ with pkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
opensubdiv = callPackage ../development/libraries/opensubdiv {
|
opensubdiv = callPackage ../development/libraries/opensubdiv {
|
||||||
stdenv_gcc5 = overrideCC stdenv gcc5;
|
|
||||||
cudaSupport = config.cudaSupport or false;
|
cudaSupport = config.cudaSupport or false;
|
||||||
cmake = cmake_2_8;
|
cmake = cmake_2_8;
|
||||||
};
|
};
|
||||||
|
@ -13814,7 +13813,6 @@ with pkgs;
|
||||||
bleachbit = callPackage ../applications/misc/bleachbit { };
|
bleachbit = callPackage ../applications/misc/bleachbit { };
|
||||||
|
|
||||||
blender = callPackage ../applications/misc/blender {
|
blender = callPackage ../applications/misc/blender {
|
||||||
stdenv_gcc5 = overrideCC stdenv gcc5;
|
|
||||||
cudaSupport = config.cudaSupport or false;
|
cudaSupport = config.cudaSupport or false;
|
||||||
python = python35;
|
python = python35;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue