summary refs log tree commit diff
diff options
context:
space:
mode:
authorYves Fischer <yvesf+git@xapek.org>2022-09-06 07:30:09 +0200
committerGitHub <noreply@github.com>2022-09-06 07:30:09 +0200
commitbc392314c6d2772e80e2da5004097de463a9ec69 (patch)
tree37feb72e73e11ee7af12a4e52c34fc03f8991a76
parent0c42a8d2b0552a67702500a6060a6c70d9bfd819 (diff)
downloadnixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.tar
nixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.tar.gz
nixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.tar.bz2
nixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.tar.lz
nixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.tar.xz
nixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.tar.zst
nixpkgs-bc392314c6d2772e80e2da5004097de463a9ec69.zip
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.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix
index a8ed68b088b..0b743213614 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"
   ];