Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

opensubdiv: fix compilation with CUDA support

+4 -1
+4 -1
pkgs/development/libraries/opensubdiv/default.nix
··· 30 "-DNO_EXAMPLES=1" 31 "-DGLEW_INCLUDE_DIR=${glew.dev}/include" 32 "-DGLEW_LIBRARY=${glew.dev}/lib" 33 - ] ++ lib.optional cudaSupport "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30"; 34 35 enableParallelBuilding = true; 36
··· 30 "-DNO_EXAMPLES=1" 31 "-DGLEW_INCLUDE_DIR=${glew.dev}/include" 32 "-DGLEW_LIBRARY=${glew.dev}/lib" 33 + ] ++ lib.optionals cudaSupport [ 34 + "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30" 35 + "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc" 36 + ]; 37 38 enableParallelBuilding = true; 39