libxslt: Explicitly specify libxml prefix

Otherwise configure seems not to find xml2-config while cross-compiling.
wip/yesman
Ben Gamari 7 years ago committed by John Ericson
parent 0235539dfe
commit 6719bf5a74
  1. 5
      pkgs/development/libraries/libxslt/default.nix

@ -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"

Loading…
Cancel
Save