anchor.diff:        "-DWITH_PYTHON_INSTALL=OFF"
         "-DWITH_PYTHON_INSTALL_NUMPY=OFF"
         "-DPYTHON_NUMPY_PATH=${python3Packages.numpy}/${python.sitePackages}"
  +      "-DPYTHON_NUMPY_INCLUDE_DIRS=${python3Packages.numpy}/${python.sitePackages}/numpy/core/include"
         "-DWITH_OPENVDB=ON"
         "-DWITH_TBB=ON"
         "-DWITH_IMAGE_OPENJPEG=ON"
  
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;
  