python3Packages.minify-html: fix build on darwin

maturin >= 1.13.0 doesn't add `-undefined dynamic_lookup` because
it finds the flags in minify-html-python/.cargo/config, but cargo
doesn't look there so neither system adds the flags.

see https://github.com/NixOS/nixpkgs/issues/541257 for more info
This commit is contained in:
Samiser
2026-07-13 15:31:10 +01:00
parent d388334e71
commit 2ee0febae7
@@ -23,6 +23,12 @@ buildPythonPackage rec {
hash = "sha256-K0m+rM0dcosAOl5jYdh9CSRrL/Vuk1ATWHPQJbLxvRw=";
};
# The sdist's nested .cargo/config makes maturin >= 1.13.0 skip adding
# `-undefined dynamic_lookup` but cargo never reads it, dropping the flag
postPatch = ''
rm -r minify-html-python/.cargo
'';
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook