anchor.diff:        "-DGLEW_INCLUDE_DIR=${glew.dev}/include"
         "-DGLEW_LIBRARY=${glew.dev}/lib"
       ] ++ lib.optionals cudaSupport [
  -      "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=compute_30"
  +      "-DOSD_CUDA_NVCC_FLAGS=--gpu-architecture=${cudaArch}"
         "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
  +    ] ++ lib.optionals (!openclSupport) [
  +      "-DNO_OPENCL=1"
       ];
   
     postInstall = "rm $out/lib/*.a";
  
positive.code:   meta = {
      description = "An Open-Source subdivision surface library";
      homepage = "http://graphics.pixar.com/opensubdiv";
      platforms = lib.platforms.unix;
      maintainers = [ lib.maintainers.eelco ];
      license = lib.licenses.asl20;
  
negative.code: { config, lib, stdenv, fetchFromGitHub, cmake, pkg-config, xorg, libGLU
  , libGL, glew, ocl-icd, python3
  , cudaSupport ? config.cudaSupport or false, cudatoolkit
    # For visibility mostly. The whole approach to cuda architectures and capabilities
    # will be reworked soon.
  , cudaArch ? "compute_37"
  , openclSupport ? !cudaSupport
  , darwin
  }:
  
  