libpsl: fix Darwin cross-compilation (#347007)

This commit is contained in:
Emily
2024-10-11 02:08:41 +01:00
committed by GitHub
@@ -41,7 +41,9 @@ stdenv.mkDerivation rec {
libidn2
libunistring
libxslt
] ++ lib.optional (!stdenv.hostPlatform.isStatic) python3;
] ++ lib.optional (
!stdenv.hostPlatform.isStatic && (stdenv.hostPlatform.isDarwin -> stdenv.buildPlatform == stdenv.hostPlatform)
) python3;
propagatedBuildInputs = [
publicsuffix-list