libxslt: make configureFlags unconditional, re-org to address comment

This commit is contained in:
Will Dietz 2018-01-22 18:57:13 -06:00 committed by John Ericson
parent 2b04cddf7e
commit 16b6e5a452

View File

@ -40,15 +40,13 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ findXMLCatalogs ]; propagatedBuildInputs = [ findXMLCatalogs ];
# TODO move cryptoSupport as last flag, when upgrading libxslt configureFlags = [
configureFlags = [] "--with-libxml-prefix=${libxml2.dev}"
++ optional (buildPlatform != hostPlatform) "--with-libxml-prefix=${libxml2.dev}"
++ optional (!cryptoSupport) "--without-crypto"
++ [
"--without-debug" "--without-debug"
"--without-mem-debug" "--without-mem-debug"
"--without-debugger" "--without-debugger"
] ++ optional pythonSupport "--with-python=${python2}"; ] ++ optional pythonSupport "--with-python=${python2}"
++ optional (!cryptoSupport) "--without-crypto";
postFixup = '' postFixup = ''
moveToOutput bin/xslt-config "$dev" moveToOutput bin/xslt-config "$dev"