3
0
Fork 0
forked from mirrors/nixpkgs

libxslt: fix impurity on 'native-stdenv' platforms

libxslt has optional dependencies which may be found in /usr or
/usr/local on platforms that have a native stdenv. With those features
enabled, the build generated binaries that depend on libraries outside
of the store. In this particular case, the NixOS channel had binaries
for FreeBSD that depended on libgcrypt, apparently because that packages
happens to be installed outside of Nix on the build machine. On other
machines, however, those binaries failed with unresolvable references.
This commit is contained in:
Peter Simons 2013-03-25 13:16:28 +01:00
parent e655c6afd7
commit 1764ea2b0a

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, libxml2 }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
name = "libxslt-1.1.27";
src = fetchurl {
@ -22,4 +22,15 @@ stdenv.mkDerivation rec {
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.eelco ];
};
}
} // (if !stdenv.isFreeBSD then {} else {
buildInputs = [];
configureFlags = [
"--with-libxml-prefix=${libxml2}"
"--without-python"
"--without-crypto"
"--without-debug"
"--without-mem-debug"
"--without-debugger"
];
}))