anchor.diff:  , colladaSupport ? true, opencollada
   , makeWrapper
   , pugixml, SDL, Cocoa, CoreGraphics, ForceFeedback, OpenAL, OpenGL
  -, embree
  +, embree, gmp
   }:
   
   with lib;
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "blender";
    version = "2.90.1";
  
    src = fetchurl {
      url = "https://download.blender.org/source/${pname}-${version}.tar.xz";
      sha256 = "169xcmm1zkvab14qdxggqc758xdkqs7r7imwi6yx2fl2djacr3g7";
    };
  
    patches = lib.optional stdenv.isDarwin ./darwin.patch;
  
negative.code:       tbb
        makeWrapper
        embree
        gmp
      ]
      ++ (if (!stdenv.isDarwin) then [
        libXi libX11 libXext libXrender
  