3
0
Fork 0
forked from mirrors/nixpkgs

libxslt: Explicitly specify libxml prefix

Otherwise configure seems not to find xml2-config while cross-compiling.
This commit is contained in:
Ben Gamari 2017-10-27 17:53:50 -04:00 committed by John Ericson
parent 0235539dfe
commit 6719bf5a74

View file

@ -41,7 +41,10 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ findXMLCatalogs ];
# TODO move cryptoSupport as last flag, when upgrading libxslt
configureFlags = optional (!cryptoSupport) "--without-crypto" ++ [
configureFlags = []
++ optional (buildPlatform != hostPlatform) "--with-libxml-prefix=${libxml2.dev}"
++ optional (!cryptoSupport) "--without-crypto"
++ [
"--without-debug"
"--without-mem-debug"
"--without-debugger"