anchor.diff: -{ stdenv, lib, fetchurl, fetchpatch, SDL, boost, cmake, ffmpeg, gettext, glew
  +{ stdenv, lib, fetchurl, SDL, boost, cmake, ffmpeg, gettext, glew
   , ilmbase, libXi, libjpeg, libpng, libsamplerate, libsndfile
   , libtiff, mesa, openal, opencolorio, openexr, openimageio, openjpeg, python
  -, zlib, fftw
  +, zlib, fftw, opensubdiv
   , jackaudioSupport ? false, libjack2
   , cudaSupport ? false, cudatoolkit
   , colladaSupport ? true, opencollada
  
positive.code:       "-DWITH_GAMEENGINE=ON"
        "-DWITH_OPENCOLORIO=ON"
        "-DWITH_PLAYER=ON"
        "-DPYTHON_LIBRARY=python${python.majorVersion}m"
        "-DPYTHON_LIBPATH=${python}/lib"
        "-DPYTHON_INCLUDE_DIR=${python}/include/python${python.majorVersion}m"
  
negative.code: with lib;
  
  stdenv.mkDerivation rec {
    name = "blender-2.76";
  
    src = fetchurl {
      url = "http://download.blender.org/source/${name}.tar.gz";
      sha256 = "0daqirvlr0bwgrgrr7igyl8rcgjvpvrgns76z2z57kdxi6d696av";
    };
  
    buildInputs =
      [ SDL boost cmake ffmpeg gettext glew ilmbase libXi
        libjpeg libpng libsamplerate libsndfile libtiff mesa openal
        opencolorio openexr openimageio /* openjpeg */ python zlib fftw
        (opensubdiv.override { inherit cudaSupport; })
      ]
      ++ optional jackaudioSupport libjack2
      ++ optional cudaSupport cudatoolkit
  