blender: 4.3.2 -> 4.4.0 (#391594)

Changed files
+64 -94
pkgs
applications
misc
blender
by-name
top-level
pkgs/applications/misc/blender/darwin.patch pkgs/by-name/bl/blender/darwin.patch
+10 -41
pkgs/applications/misc/blender/default.nix pkgs/by-name/bl/blender/package.nix
···
cudaSupport ? config.cudaSupport,
dbus,
embree,
-
fetchgit,
-
fetchpatch2,
fetchzip,
ffmpeg,
fftw,
···
makeWrapper,
mesa,
openal,
-
opencollada,
opencolorio,
openexr,
openimagedenoise,
···
stdenv'.mkDerivation (finalAttrs: {
pname = "blender";
-
version = "4.3.2";
-
srcs = [
-
(fetchzip {
-
name = "source";
-
url = "https://download.blender.org/source/blender-${finalAttrs.version}.tar.xz";
-
hash = "sha256-LCU2JpQbvQ+W/jC+H8J2suh+X5sTLOG9TcE2EeHqVh4=";
-
})
-
(fetchgit {
-
name = "assets";
-
url = "https://projects.blender.org/blender/blender-assets.git";
-
rev = "v${finalAttrs.version}";
-
fetchLFS = true;
-
hash = "sha256-B/UibETNBEUAO1pLCY6wR/Mmdk2o9YyNs6z6pV8dBJI=";
-
})
-
];
-
postUnpack = ''
-
chmod -R u+w *
-
rm -r assets/working
-
mv assets --target-directory source/release/datafiles/
-
'';
-
-
sourceRoot = "source";
-
-
patches = [
-
./draco.patch
-
(fetchpatch2 {
-
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/raw/4b6214600e11851d7793256e2f6846a594e6f223/ffmpeg-7-1.patch";
-
hash = "sha256-YXXqP/+79y3f41n3cJ3A1RBzgdoYqfKZD/REqmWYdgQ=";
-
})
-
(fetchpatch2 {
-
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/raw/4b6214600e11851d7793256e2f6846a594e6f223/ffmpeg-7-2.patch";
-
hash = "sha256-mF6IA/dbHdNEkBN5XXCRcLIZ/8kXoirNwq7RDuLRAjw=";
-
})
-
] ++ lib.optional stdenv.hostPlatform.isDarwin ./darwin.patch;
postPatch =
(lib.optionalString stdenv.hostPlatform.isDarwin ''
···
"-DWITH_OPENIMAGEDENOISE=${if openImageDenoiseSupport then "ON" else "OFF"}"
"-DWITH_OPENSUBDIV=ON"
"-DWITH_OPENVDB=ON"
"-DWITH_PULSEAUDIO=OFF"
"-DWITH_PYTHON_INSTALL=OFF"
"-DWITH_PYTHON_INSTALL_NUMPY=OFF"
···
wayland
wayland-protocols
]
-
++ lib.optional colladaSupport opencollada
++ lib.optional jackaudioSupport libjack2
++ lib.optional spaceNavSupport libspnav
++ lib.optionals vulkanSupport [
···
lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir $out/Applications
mv $out/Blender.app $out/Applications
-
''
-
+ lib.optionalString stdenv.hostPlatform.isLinux ''
-
mv $out/share/blender/${lib.versions.majorMinor finalAttrs.version}/python{,-ext}
''
+ ''
buildPythonPath "$pythonPath"
···
cudaSupport ? config.cudaSupport,
dbus,
embree,
fetchzip,
ffmpeg,
fftw,
···
makeWrapper,
mesa,
openal,
+
opencollada-blender,
opencolorio,
openexr,
openimagedenoise,
···
stdenv'.mkDerivation (finalAttrs: {
pname = "blender";
+
version = "4.4.0";
+
srcs = fetchzip {
+
name = "source";
+
url = "https://download.blender.org/source/blender-${finalAttrs.version}.tar.xz";
+
hash = "sha256-pAzOayAPyRYgTixAyg2prkUtI70uFulRuBYhgU9ZNw4=";
+
};
+
patches = [ ] ++ lib.optional stdenv.hostPlatform.isDarwin ./darwin.patch;
postPatch =
(lib.optionalString stdenv.hostPlatform.isDarwin ''
···
"-DWITH_OPENIMAGEDENOISE=${if openImageDenoiseSupport then "ON" else "OFF"}"
"-DWITH_OPENSUBDIV=ON"
"-DWITH_OPENVDB=ON"
+
"-DWITH_PIPEWIRE=OFF"
"-DWITH_PULSEAUDIO=OFF"
"-DWITH_PYTHON_INSTALL=OFF"
"-DWITH_PYTHON_INSTALL_NUMPY=OFF"
···
wayland
wayland-protocols
]
+
++ lib.optional colladaSupport opencollada-blender
++ lib.optional jackaudioSupport libjack2
++ lib.optional spaceNavSupport libspnav
++ lib.optionals vulkanSupport [
···
lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir $out/Applications
mv $out/Blender.app $out/Applications
''
+ ''
buildPythonPath "$pythonPath"
-33
pkgs/applications/misc/blender/draco.patch
···
-
diff --git a/CMakeLists.txt b/CMakeLists.txt
-
index 97596dbee8d..d1ad6ac5de0 100644
-
--- a/CMakeLists.txt
-
+++ b/CMakeLists.txt
-
@@ -1237,13 +1237,6 @@ set_and_warn_dependency(WITH_PYTHON WITH_CYCLES OFF)
-
set_and_warn_dependency(WITH_PYTHON WITH_DRACO OFF)
-
set_and_warn_dependency(WITH_PYTHON WITH_MOD_FLUID OFF)
-
-
-if(NOT WITH_PYTHON_MODULE)
-
- if(WITH_DRACO AND NOT WITH_PYTHON_INSTALL)
-
- message(STATUS "WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now")
-
- set(WITH_DRACO OFF)
-
- endif()
-
-endif()
-
-
-
# enable boost for cycles, audaspace or i18n
-
# otherwise if the user disabled
-
-
diff --git a/scripts/addons_core/io_scene_gltf2/io/com/draco.py b/scripts/addons_core/io_scene_gltf2/io/com/draco.py
-
index 75e23162c67..875596c3d2f 100644
-
--- a/scripts/addons_core/io_scene_gltf2/io/com/draco.py
-
+++ b/scripts/addons_core/io_scene_gltf2/io/com/draco.py
-
@@ -31,8 +31,8 @@ def dll_path() -> Path:
-
:return: DLL path.
-
"""
-
lib_name = 'extern_draco'
-
- blender_root = Path(bpy.app.binary_path).parent
-
- python_lib = Path('{v[0]}.{v[1]}/python/lib'.format(v=bpy.app.version))
-
+ blender_root = Path(bpy.app.binary_path).parent.parent
-
+ python_lib = Path('share/blender/{v[0]}.{v[1]}/python/lib'.format(v=bpy.app.version))
-
python_version = 'python{v[0]}.{v[1]}'.format(v=sys.version_info)
-
-
path = os.environ.get('BLENDER_EXTERN_DRACO_LIBRARY_PATH')
···
pkgs/applications/misc/blender/libdecor.patch pkgs/by-name/bl/blender/libdecor.patch
pkgs/applications/misc/blender/test-cuda.py pkgs/by-name/bl/blender/test-cuda.py
pkgs/applications/misc/blender/wrapper.nix pkgs/by-name/bl/blender/wrapper.nix
+39
pkgs/by-name/op/opencollada-blender/package.nix
···
···
+
{
+
cmake,
+
fetchFromGitHub,
+
lib,
+
libxml2,
+
pcre,
+
pkg-config,
+
stdenv,
+
}:
+
+
stdenv.mkDerivation {
+
pname = "opencollada";
+
version = "unstable-2025-01-30";
+
+
src = fetchFromGitHub {
+
owner = "aras-p";
+
repo = "OpenCOLLADA";
+
rev = "4526eb8aaa6462c71fbedd23103976c151a01c50";
+
sha256 = "sha256-ctr+GjDzxOJxBfaMwjwayPkAOcF+FMsP1X72QCOwvTY=";
+
};
+
+
nativeBuildInputs = [
+
cmake
+
pkg-config
+
];
+
+
propagatedBuildInputs = [
+
libxml2
+
pcre
+
];
+
+
meta = {
+
description = "Library for handling the COLLADA file format";
+
homepage = "https://github.com/KhronosGroup/OpenCOLLADA/";
+
maintainers = [ lib.maintainers.amarshall ];
+
platforms = lib.platforms.unix;
+
license = lib.licenses.mit;
+
};
+
}
+14 -19
pkgs/by-name/op/opencollada/package.nix
···
{
-
lib,
-
stdenv,
fetchFromGitHub,
fetchurl,
-
cmake,
-
pkg-config,
libxml2,
pcre,
-
darwin,
}:
stdenv.mkDerivation rec {
pname = "opencollada";
-
version = "1.6.68";
src = fetchFromGitHub {
···
})
];
-
nativeBuildInputs = [
-
cmake
-
pkg-config
-
];
-
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
-
with darwin.apple_sdk.frameworks; [ AGL ]
-
);
-
-
propagatedBuildInputs = [
-
libxml2
-
pcre
-
];
-
postPatch =
''
# Drop blanket -Werror as it tends to fail on newer toolchain for
···
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
--replace math.h cmath
'';
meta = {
description = "Library for handling the COLLADA file format";
···
{
+
cmake,
fetchFromGitHub,
fetchurl,
+
lib,
libxml2,
pcre,
+
pkg-config,
+
stdenv,
}:
stdenv.mkDerivation rec {
pname = "opencollada";
version = "1.6.68";
src = fetchFromGitHub {
···
})
];
postPatch =
''
# Drop blanket -Werror as it tends to fail on newer toolchain for
···
substituteInPlace GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp \
--replace math.h cmath
'';
+
+
nativeBuildInputs = [
+
cmake
+
pkg-config
+
];
+
+
propagatedBuildInputs = [
+
libxml2
+
pcre
+
];
meta = {
description = "Library for handling the COLLADA file format";
+1 -1
pkgs/top-level/all-packages.nix
···
pinentry = pinentry-curses;
};
-
blender = callPackage ../applications/misc/blender {
openexr = openexr_3;
python3Packages = python311Packages;
inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics ForceFeedback OpenAL OpenGL;
···
pinentry = pinentry-curses;
};
+
blender = callPackage ../by-name/bl/blender/package.nix {
openexr = openexr_3;
python3Packages = python311Packages;
inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics ForceFeedback OpenAL OpenGL;