diff options
author | Peter Simons <simons@cryp.to> | 2013-03-25 13:16:28 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-03-25 13:16:28 +0100 |
commit | 1764ea2b0a635587746d382db1b6cd832483a362 (patch) | |
tree | e3416839395ea360e8b7fd2683c744281ab37c37 /pkgs/development/libraries/libxslt | |
parent | e655c6afd76db3c2de238b082ded54b32190d56b (diff) | |
download | nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.tar nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.tar.gz nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.tar.bz2 nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.tar.lz nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.tar.xz nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.tar.zst nixpkgs-1764ea2b0a635587746d382db1b6cd832483a362.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/libxslt')
-rw-r--r-- | pkgs/development/libraries/libxslt/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
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" + ]; +})) |