From 2ee0febae7b535397af3333e231f3e8fa9918263 Mon Sep 17 00:00:00 2001 From: Samiser Date: Mon, 13 Jul 2026 15:31:10 +0100 Subject: [PATCH] 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 --- pkgs/development/python-modules/minify-html/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/minify-html/default.nix b/pkgs/development/python-modules/minify-html/default.nix index 0cd4728defed..4f447b726695 100644 --- a/pkgs/development/python-modules/minify-html/default.nix +++ b/pkgs/development/python-modules/minify-html/default.nix @@ -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