libxslt: enable strictDeps and enable pythonSupport when cross

This commit is contained in:
Artturin 2022-10-07 16:52:01 +03:00
parent 9069a064f8
commit 8e43dec8ba

View file

@ -10,7 +10,7 @@
, ncurses
, libgcrypt
, cryptoSupport ? false
, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
, pythonSupport ? true
, gnome
}:
@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
sha256 = "EoSPCkQI9ltTDTlizZ/2cLaueWGRz+/zdSK1dy3o3I4=";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
autoreconfHook
@ -51,7 +53,8 @@ stdenv.mkDerivation rec {
"--without-debug"
"--without-mem-debug"
"--without-debugger"
(lib.withFeatureAs pythonSupport "python" python)
(lib.withFeature pythonSupport "python")
(lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}")
] ++ lib.optionals (!cryptoSupport) [
"--without-crypto"
];