From bc392314c6d2772e80e2da5004097de463a9ec69 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 6 Sep 2022 07:30:09 +0200 Subject: 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 --- pkgs/development/libraries/libxslt/default.nix | 3 +-- 1 file changed, 1 insertion(+), 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" ]; -- cgit v1.2.3