blender: inline single-use vars when defining withPackages

This commit is contained in:
Andrew Marshall
2024-03-05 08:46:45 -05:00
parent 6d234d9d5e
commit 3369061e8e
+2 -7
View File
@@ -85,8 +85,6 @@ let
pythonPackages = python310Packages;
inherit (pythonPackages) python;
buildEnv = callPackage ./wrapper.nix { };
libdecor' = libdecor.overrideAttrs (old: {
# Blender uses private APIs, need to patch to expose them
patches = (old.patches or [ ]) ++ [ ./libdecor.patch ];
@@ -323,12 +321,9 @@ stdenv.mkDerivation (finalAttrs: {
withPackages =
f:
let
packages = f pythonPackages;
in
buildEnv.override {
(callPackage ./wrapper.nix { }).override {
blender = finalAttrs.finalPackage;
extraModules = packages;
extraModules = (f pythonPackages);
};
tests = {