mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-15 00:24:47 +00:00
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:
parent
e694240f77
commit
ebd240410f
@ -41,7 +41,9 @@ stdenv.mkDerivation rec {
|
|||||||
libidn2
|
libidn2
|
||||||
libunistring
|
libunistring
|
||||||
libxslt
|
libxslt
|
||||||
] ++ lib.optional (!stdenv.hostPlatform.isStatic) python3;
|
] ++ lib.optional (
|
||||||
|
!stdenv.hostPlatform.isStatic && (stdenv.hostPlatform.isDarwin -> stdenv.buildPlatform == stdenv.hostPlatform)
|
||||||
|
) python3;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
publicsuffix-list
|
publicsuffix-list
|
||||||
|
Loading…
Reference in New Issue
Block a user