Skip to content

Commit

Permalink
libpsl: fix Darwin cross-compilation
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
reckenrode committed Oct 10, 2024
1 parent e694240 commit ebd2404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/libpsl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebd2404

Please sign in to comment.