Hi,
I managed to build version 1.35.0 of the boost libraries with the nix
expression that is attached below. The all-packages.nix reference looks
like this:
boost = import ../.nixpkgs/boost-1.35.0.nix
{
inherit fetchurl stdenv icu zlib bzip2 python;
};
The nix expression can be improved quite a bit. For starters, it should
be customizable whether debug-versions of libraries are desired. There
should probably also be a "doc" flag that triggers installation of the
HTML documentation. I might be able to do that later, but the machine
I'm using right now is way too slow for repeatedly building that
package. :-)
Is there a way to tell nix-build that it should re-use a previously
generated working directory? I realize that this would make the build
less clean, but just unpacking that huge boost library archive takes a
while on my machine and it would be nice if that time could be saved
during package development.
Any feedback concerning that package is welcome.
Peter
{ stdenv, fetchurl, icu, zlib, bzip2, python }:
stdenv.mkDerivation
{
name = "boost-1.35.0";
meta =
{
homepage = "http://boost.org/";
description = "Boost C++ Library Collection";
license = "boost-license";
};
src = fetchurl
{
url = "mirror://sourceforge/boost/boost_1_35_0.tar.bz2";
sha256 = "f8bf7368a22ccf2e2cf77048ab2129744be4c03f8488c76ad31c0aa229b280da";
};
buildInputs = [icu zlib bzip2 python];
preConfigure = "
sed -e '[EMAIL PROTECTED]"\"@BJAM_CONFIG=\"--layout=system
variant=debug,release threading=single,multi link=shared,static\"@g' -i
configure
";
configureFlags = "--with-icu=${icu} --with-python=${python}";
}
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev