libxslt: fix cross compilation (#189766)

* libxslt: fix cross compilation

The derivation is already prepared to disable python
if buildPlatform != targetPlatform.
Additionally, the configure of libxslt needs to be told
`--without-python` to not look for the python interpreter.

Co-authored-by: Christoph Neidahl <christoph.neidahl@gmail.com>
This commit is contained in:
Yves Fischer 2022-09-06 07:30:09 +02:00 committed by GitHub
parent 0c42a8d2b0
commit bc392314c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,7 @@ stdenv.mkDerivation rec {
"--without-debug"
"--without-mem-debug"
"--without-debugger"
] ++ lib.optionals pythonSupport [
"--with-python=${python}"
(lib.withFeatureAs pythonSupport "python" python)
] ++ lib.optionals (!cryptoSupport) [
"--without-crypto"
];