phpExtensions.iconv: fix build on Darwin after the SDK update (#348181)

This commit is contained in:
Pol Dellaiera 2024-10-13 15:48:16 +02:00 committed by GitHub
commit 1aec99ec4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -451,6 +451,9 @@ in {
name = "iconv";
buildInputs = [ libiconv ];
configureFlags = [ "--with-iconv" ];
# Some other extensions support separate libdirs, but iconv does not. This causes problems with detecting
# Darwins libiconv because it has separate outputs. Adding `-liconv` works around the issue.
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { NIX_LDFLAGS = "-liconv"; };
doCheck = stdenv.hostPlatform.isLinux;
}
{