Unverified Commit fc9031f1 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by GitHub
Browse files

blender: 4.4 -> 4.5 (#415996)

parents 953761fe fa478f30
Loading
Loading
Loading
Loading
+18 −13
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
  dbus,
  embree,
  fetchzip,
  fetchFromGitHub,
  ffmpeg,
  fftw,
  fftwFloat,
@@ -48,6 +49,7 @@
  libxkbcommon,
  llvmPackages,
  makeWrapper,
  manifold,
  mesa,
  nix-update-script,
  openUsdSupport ? !stdenv.hostPlatform.isDarwin,
@@ -72,7 +74,7 @@
  spaceNavSupport ? stdenv.hostPlatform.isLinux,
  sse2neon,
  stdenv,
  tbb,
  tbb_2022,
  vulkan-headers,
  vulkan-loader,
  wayland,
@@ -100,26 +102,27 @@ let
    patches = (old.patches or [ ]) ++ [ ./libdecor.patch ];
  });

  optix = fetchzip {
    # Look at upstream Blender BuildBot logs to determine the current version,
    # see Git blame here for historical details
    url = "https://developer.download.nvidia.com/redist/optix/v7.4/OptiX-7.4.0-Include.zip";
    hash = "sha256-ca08XetwaUYC9foeP5bff9kcDfuFgEzopvjspn2s8RY=";
  # See build_files/config/pipeline_config.yaml in upstream source for version
  optix = fetchFromGitHub {
    owner = "NVIDIA";
    repo = "optix-dev";
    tag = "v8.0.0";
    hash = "sha256-SXkXZHzQH8JOkXypjjxNvT/lUlWZkCuhh6hNCHE7FkY=";
  };

  tbb = tbb_2022;
in

stdenv'.mkDerivation (finalAttrs: {
  pname = "blender";
  version = "4.4.3";
  version = "4.5.0";

  src = fetchzip {
    name = "source";
    url = "https://download.blender.org/source/blender-${finalAttrs.version}.tar.xz";
    hash = "sha256-vHDOKI7uqB5EbdRu711axBuYX1zM746E6GvK2Nl5hZg=";
    hash = "sha256-ERT/apulQ9ogA7Uk/AfjBee0rLjxEXItw6GwDOoysXk=";
  };

  patches = [ ] ++ lib.optional stdenv.hostPlatform.isDarwin ./darwin.patch;

  postPatch =
    (lib.optionalString stdenv.hostPlatform.isDarwin ''
      : > build_files/cmake/platform/platform_apple_xcode.cmake
@@ -247,13 +250,14 @@ stdenv'.mkDerivation (finalAttrs: {
      libsndfile
      libtiff
      libwebp
      (manifold.override { tbb_2021 = tbb; })
      opencolorio
      openexr
      openimageio_2
      openjpeg
      openpgl
      (openpgl.override { inherit tbb; })
      (opensubdiv.override { inherit cudaSupport; })
      openvdb
      (openvdb.override { inherit tbb; })
      potrace
      pugixml
      python3
@@ -263,7 +267,7 @@ stdenv'.mkDerivation (finalAttrs: {
      zstd
    ]
    ++ lib.optional embreeSupport embree
    ++ lib.optional openImageDenoiseSupport (openimagedenoise.override { inherit cudaSupport; })
    ++ lib.optional openImageDenoiseSupport (openimagedenoise.override { inherit cudaSupport tbb; })
    ++ (
      if (!stdenv.hostPlatform.isDarwin) then
        [
@@ -419,6 +423,7 @@ stdenv'.mkDerivation (finalAttrs: {
  };

  meta = {
    broken = stdenv.hostPlatform.isDarwin;
    description = "3D Creation/Animation/Publishing System";
    homepage = "https://www.blender.org";
    # They comment two licenses: GPLv2 and Blender License, but they
+2 −1
Original line number Diff line number Diff line
@@ -27,9 +27,10 @@ stdenv.mkDerivation (finalAttrs: {
    gtest
    glm
    tbb_2021
    clipper2
  ];

  propagatedBuildInputs = [ clipper2 ];

  cmakeFlags = [
    "-DBUILD_SHARED_LIBS=ON"
    "-DMANIFOLD_TEST=ON"