From 1f8dd05e72adc4e33e43b233bab7c0872119379d Mon Sep 17 00:00:00 2001 From: yvt Date: Sat, 31 Dec 2022 09:38:54 +0900 Subject: [PATCH] blender: add `libwebp` to `buildInputs` (#208201) Enables the WebP image format support in Blender. It has been [supported](https://developer.blender.org/rB4fd0a69d7ba) since Blender 3.2 but was disabled due to libwebp missing from the build inputs. $ nix build nixpkgs#blender $ nix log (realpath result) ... -- Could NOT find WebP (missing: _webp_LIBRARIES WEBP_INCLUDE_DIR) CMake Warning at build_files/cmake/platform/platform_unix.cmake:407 (message): WebP not found, disabling WITH_IMAGE_WEBP Call Stack (most recent call first): CMakeLists.txt:1058 (include) --- pkgs/applications/misc/blender/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/blender/default.nix b/pkgs/applications/misc/blender/default.nix index 1d617718ff90..4251a6919d40 100644 --- a/pkgs/applications/misc/blender/default.nix +++ b/pkgs/applications/misc/blender/default.nix @@ -1,7 +1,7 @@ { config, stdenv, lib, fetchurl, fetchzip, boost, cmake, ffmpeg, gettext, glew , ilmbase, libXi, libX11, libXext, libXrender , libjpeg, libpng, libsamplerate, libsndfile -, libtiff, libGLU, libGL, openal, opencolorio, openexr, openimagedenoise, openimageio2, openjpeg, python310Packages +, libtiff, libwebp, libGLU, libGL, openal, opencolorio, openexr, openimagedenoise, openimageio2, openjpeg, python310Packages , openvdb, libXxf86vm, tbb, alembic , zlib, zstd, fftw, opensubdiv, freetype, jemalloc, ocl-icd, addOpenGLRunpath , jackaudioSupport ? false, libjack2 @@ -41,7 +41,7 @@ stdenv.mkDerivation rec { ++ optionals cudaSupport [ addOpenGLRunpath ]; buildInputs = [ boost ffmpeg gettext glew ilmbase - freetype libjpeg libpng libsamplerate libsndfile libtiff + freetype libjpeg libpng libsamplerate libsndfile libtiff libwebp opencolorio openexr openimagedenoise openimageio2 openjpeg python zlib zstd fftw jemalloc alembic (opensubdiv.override { inherit cudaSupport; })