Unverified Commit ebd24041 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

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).
parent e694240f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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