From eb51358653cab3bb9721ed9977977823b88232aa Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 19 Feb 2026 22:38:23 +0100 Subject: [PATCH] python3Packages.weasyprint: move env vars into env for structuredAttrs --- pkgs/development/python-modules/weasyprint/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index bf076964b914..40c26569dc1d 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -103,10 +103,10 @@ buildPythonPackage (finalAttrs: { "test_text_stroke" ]; - FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; + env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; # Set env variable explicitly for Darwin, but allow overriding when invoking directly - makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${finalAttrs.FONTCONFIG_FILE}" ]; + makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${finalAttrs.env.FONTCONFIG_FILE}" ]; pythonImportsCheck = [ "weasyprint" ];