diff options
author | Yves Fischer <yvesf+git@xapek.org> | 2022-09-06 07:30:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 07:30:09 +0200 |
commit | bc392314c6d2772e80e2da5004097de463a9ec69 (patch) | |
tree | 37feb72e73e11ee7af12a4e52c34fc03f8991a76 | |
parent | 0c42a8d2b0552a67702500a6060a6c70d9bfd819 (diff) |
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>
-rw-r--r-- | pkgs/development/libraries/libxslt/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix index a8ed68b088bd..0b7432136144 100644 --- a/pkgs/development/libraries/libxslt/default.nix +++ b/pkgs/development/libraries/libxslt/default.nix @@ -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" ]; |