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.
This commit is contained in:
Andrew Marshall 2024-02-28 18:59:50 -05:00
parent 108ce1896e
commit 5050e36376

View file

@ -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 =