anchor.diff:        embree
         gmp
         pugixml
  +      potrace
       ]
       ++ (if (!stdenv.isDarwin) then [
         libXi libX11 libXext libXrender
         libGLU libGL openal
         libXxf86vm
  +      openxr-loader
         # OpenVDB currently doesn't build on darwin
         openvdb
       ]
  
positive.code: , spaceNavSupport ? stdenv.isLinux, libspnav
  , makeWrapper
  , pugixml, llvmPackages, SDL, Cocoa, CoreGraphics, ForceFeedback, OpenAL, OpenGL
  , embree, gmp
  }:
  
  
negative.code: in
  stdenv.mkDerivation rec {
    pname = "blender";
    version = "2.92.0";
  
    src = fetchurl {
      url = "https://download.blender.org/source/${pname}-${version}.tar.xz";
      sha256 = "15a5vffn18a920286x0avbc2rap56k6y531wgibq68r90g2cz4g7";
    };
  
    patches = lib.optional stdenv.isDarwin ./darwin.patch;
  