nixpkgs/pkgs/development/libraries/boost/1.36.0.nix
Eelco Dolstra 3b514cad99 * Boost: cut the installed size from 257 MB (!!!) to 58 MB. It
required all that space because it was building static/shared,
  single-thread/multi-threaded, and debug/production versions of the
  libraries - as well as every combination of those.  Now we build
  only the shared, multi-threaded, production version, which needs
  only 8 MB.  The headers account for the other 50 MB, so it might be
  worthwhile to split them off into a separate package (in order to
  reduce the runtime closure of applications that use Boost, such as
  KDE).

* Removed some Boost versions that aren't used anymore.

svn path=/nixpkgs/trunk/; revision=14877
2009-04-03 23:54:20 +00:00

25 lines
695 B
Nix

{stdenv, fetchurl, icu, expat, zlib, bzip2, python}:
stdenv.mkDerivation {
name = "boost-1.36.0";
meta = {
homepage = "http://boost.org/";
description = "Boost C++ Library Collection";
license = "boost-license";
};
src = fetchurl {
url = "mirror://sourceforge/boost/boost_1_36_0.tar.bz2";
sha256 = "1vydzfvzg0fkzixkr2jikvcc0zbh5qgw98hr6nhj0z12ppxhqjls";
};
buildInputs = [icu expat zlib bzip2 python];
preBuild = ''
makeFlagsArray=(BJAM_CONFIG="-sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=system variant=release threading=multi link=shared")
'';
configureFlags = "--with-icu=${icu} --with-python=${python}";
}