anchor.diff: -{ stdenv, fetchFromGitHub, cmake, boost165, pkgconfig, python35
  +{ stdenv, fetchFromGitHub, cmake, boost165, pkgconfig, python36
   , tbb, openimageio, libjpeg, libpng, zlib, libtiff, ilmbase
   , freetype, openexr, libXdmcp, libxkbcommon, epoxy, at-spi2-core
   , dbus, doxygen, qt5, c-blosc, libGLU, gnome3, dconf, gtk3, pcre
  
positive.code: , withOpenCL ? true , opencl-headers, ocl-icd, opencl-clhpp
  }:
  
  let boost_static = boost165.override {
        python = python35;
        enableStatic = true;
        enablePython = true;
      };
  
  in stdenv.mkDerivation {
    pname = "luxcorerender";
    version = "2.0";
  
    src = fetchFromGitHub {
      owner = "LuxCoreRender";
      repo = "LuxCore";
      rev = "luxcorerender_v2.0";
      sha256 = "15nn39ybsfjf3cw3xgkbarvxn4a9ymfd579ankm7yjxkw5gcif38";
    };
  
    buildInputs =
     [ embree2 pkgconfig cmake zlib boost_static libjpeg
       libtiff libpng ilmbase freetype openexr openimageio
       tbb qt5.full c-blosc libGLU pcre bison
       flex libX11 libpthreadstubs python35 libXdmcp libxkbcommon
       epoxy at-spi2-core dbus doxygen
       # needed for GSETTINGS_SCHEMAS_PATH
       gsettings-desktop-schemas glib gtk3
  
negative.code:     "-DOpenEXR_IlmThread_INCLUDE_DIR=${ilmbase.dev}/include/OpenEXR"
      "-DOpenEXR_Imath_INCLUDE_DIR=${openexr.dev}/include/OpenEXR"
      "-DOpenEXR_half_INCLUDE_DIR=${ilmbase.dev}/include"
      "-DPYTHON_LIBRARY=${python}/lib/libpython3.so"
      "-DPYTHON_INCLUDE_DIR=${python}/include/python${python.pythonVersion}"
      "-DEMBREE_INCLUDE_PATH=${embree2}/include"
      "-DEMBREE_LIBRARY=${embree2}/lib/libembree.so"
      "-DBoost_PYTHON_LIBRARY_RELEASE=${boost_static}/lib/libboost_python3-mt.so"
    ] ++ stdenv.lib.optional withOpenCL
         "-DOPENCL_INCLUDE_DIR=${opencl-headers}/include";
    preConfigure = ''
      NIX_CFLAGS_COMPILE+=" -isystem ${python}/include/python${python.pythonVersion}"
      NIX_LDFLAGS+=" -lpython3"
    '';
  
  