nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python3Packages.weasyprint: restore overriding of fontconfig file

This builds on the fix for Darwin from
https://github.com/NixOS/nixpkgs/pull/207348, but letting the variable
be configurable in each environment. This avoids needing to specialize
and rebuild the derivation just to alter the fontconfig.

authored by

Johannes Emerich and committed by
Johannes Emerich
b4f34aaa f1f99922

+2 -2
+2 -2
pkgs/development/python-modules/weasyprint/default.nix
··· 79 79 80 80 FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; 81 81 82 - # Fontconfig error: Cannot load default config file: No such file: (null) 82 + # Set env variable explicitly for Darwin, but allow overriding when invoking directly 83 83 makeWrapperArgs = [ 84 - "--set FONTCONFIG_FILE ${FONTCONFIG_FILE}" 84 + "--set-default FONTCONFIG_FILE ${FONTCONFIG_FILE}" 85 85 ]; 86 86 87 87 postPatch = ''