libpsl: fix Darwin cross-compilation

Don’t include Python in libpsl’s build inputs when cross compiling to
Darwin. Python does not support cross-compilation to Darwin, which
prevents cross-compiling anything that depends on libpsl (such as curl).
This commit is contained in:
Randy Eckenrode 2024-09-13 23:41:45 -04:00
parent e694240f77
commit ebd240410f
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -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