From 16863d8ffe24649fb6a7500f2b457dd2e559de47 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 25 Mar 2013 12:40:41 +0100 Subject: [PATCH] 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix index d3b7769754e..b1fef59c861 100644 --- a/pkgs/development/libraries/libxslt/default.nix +++ b/pkgs/development/libraries/libxslt/default.nix @@ -8,7 +8,14 @@ stdenv.mkDerivation rec { sha256 = "09ky3vhlaahvsb0q9gp6h3as53pfj70gincirachjqzj46jdka5n"; }; - buildInputs = [ libxml2 ]; + configureFlags = [ + "--with-libxml-prefix=${libxml2}" + "--without-python" + "--without-crypto" + "--without-debug" + "--without-mem-debug" + "--without-debugger" + ]; postInstall = '' mkdir -p $out/nix-support