From 45fb93f966ce968be3f54a73cade646361808fae Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 23 Dec 2022 01:48:09 +0100 Subject: [PATCH] python3Packages.weasyprint: fix fontconfig error on darwin --- pkgs/development/python-modules/weasyprint/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index 5ec5c5997706..71ae956d6df8 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -79,6 +79,11 @@ buildPythonPackage rec { FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; + # Fontconfig error: Cannot load default config file: No such file: (null) + makeWrapperArgs = [ + "--set FONTCONFIG_FILE ${FONTCONFIG_FILE}" + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace "--isort --flake8 --cov --no-cov-on-fail" ""