From 1764ea2b0a635587746d382db1b6cd832483a362 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 25 Mar 2013 13:16:28 +0100 Subject: 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. --- pkgs/development/libraries/libxslt/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'pkgs/development/libraries/libxslt') diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix index d3b7769754e..ed56ffaff73 100644 --- a/pkgs/development/libraries/libxslt/default.nix +++ b/pkgs/development/libraries/libxslt/default.nix @@ -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" + ]; +})) -- cgit 1.4.1