Commit 5050e363 authored by Andrew Marshall's avatar Andrew Marshall
Browse files

blender: build with USD support

We build openusd without OSL support as we don’t build Blender with OSL
support normally, and so seems unnecessary and adds significantly to the
closure size due to (as noted in Blender drv comments) the inclusion of
LLVM.
parent 108ce189
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@
let
  python3Packages = python310Packages;
  python3 = python3Packages.python;
  pyPkgsOpenusd = python3Packages.openusd.override { withOsl = false; };

  libdecor' = libdecor.overrideAttrs (old: {
    # Blender uses private APIs, need to patch to expose them
@@ -166,6 +167,7 @@ stdenv.mkDerivation (finalAttrs: {
      "-DWITH_PYTHON_INSTALL_REQUESTS=OFF"
      "-DWITH_SDL=OFF"
      "-DWITH_TBB=ON"
      "-DWITH_USD=ON"

      # Blender supplies its own FindAlembic.cmake (incompatible with the Alembic-supplied config file)
      "-DALEMBIC_INCLUDE_DIR=${lib.getDev alembic}/include"
@@ -232,6 +234,7 @@ stdenv.mkDerivation (finalAttrs: {
      (opensubdiv.override { inherit cudaSupport; })
      potrace
      pugixml
      pyPkgsOpenusd
      python3
      tbb
      zlib
@@ -287,6 +290,7 @@ stdenv.mkDerivation (finalAttrs: {
      ps.numpy
      ps.requests
      ps.zstandard
      pyPkgsOpenusd
    ];

  blenderExecutable =