From 36b9ee7188197be35099bece775351e24298bf65 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Tue, 9 Jul 2024 23:42:38 -0400 Subject: [PATCH] blender: use correct Python version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This partially reverts commit 46861969d7e56eb98451d8a270b160c7cbbb37ea. Using nixpkgs’s default Python was previously necessary to workaround a problem that no longer exists: materialx always using the top-level python3 instead of that which matches its dependents. Using the same Python version as the upstream Blender release is desired to ensure compatibility not only Blender itself but with the addon ecosystem. Also move the selection of non-nixpkgs-default Python to all-packages rather than the pkg’s function args as that is the current preference (as documented in ./pkgs/by-name/README.md#changing-implicit-attribute-defaults). --- pkgs/top-level/all-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 06f85d5b605a..a7413bf53321 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29582,6 +29582,7 @@ with pkgs; blender = callPackage ../applications/misc/blender { openexr = openexr_3; + python3Packages = python311Packages; inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics ForceFeedback OpenAL OpenGL; };