anchor.diff:  , libtiff, mesa, openal, opencolorio, openexr, openimageio, openjpeg, python
   , zlib, fftw
   , jackaudioSupport ? false, jack2
  +, cudaSupport ? false, cudatoolkit6
   }:
   
   with lib;
  
positive.code: 
    src = fetchurl {
      url = "http://download.blender.org/source/${name}.tar.gz";
      sha256 = "18pzcnrs4rcb6mf6aqr9xj2r05v8aay8daj31395ljfzw667zakx";
    };
  
    buildInputs =
      [ SDL boost cmake ffmpeg gettext glew ilmbase libXi
        libjpeg libpng libsamplerate libsndfile libtiff mesa openal
        opencolorio openexr openimageio /* openjpeg */ python zlib fftw
      ] ++ optional jackaudioSupport jack2;
  
    postUnpack =
      ''
  
negative.code:       "-DPYTHON_INCLUDE_DIR=${python}/include/python${python.majorVersion}m"
        "-DPYTHON_VERSION=${python.majorVersion}"
      ]
      ++ optional jackaudioSupport "-DWITH_JACK=ON"
      ++ optional cudaSupport "-DWITH_CYCLES_CUDA_BINARIES=ON";
  
    NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}m";
  
  