2013-07-03 21:38:34 +02:00
|
|
|
{ stdenv, fetchurl, boost }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = stdenv.lib.removePrefix "boost-" boost.name;
|
|
|
|
pkgid = stdenv.lib.replaceChars ["-" "."] ["_" "_"] boost.name;
|
|
|
|
in
|
2013-02-06 12:33:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-07-03 21:38:34 +02:00
|
|
|
name = "boost-headers-${version}";
|
2013-02-06 12:33:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-03 21:38:34 +02:00
|
|
|
url = "mirror://sourceforge/boost/${pkgid}.tar.bz2";
|
2013-07-03 21:26:31 +02:00
|
|
|
sha256 = "07df925k56pbz3gvhxpx54aij34qd40a7sxw4im11brnwdyr4zh4";
|
2013-02-06 12:33:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
2013-07-03 21:38:34 +02:00
|
|
|
tar xf $src -C $out/include --strip-components=1 ${pkgid}/boost
|
2013-02-06 12:33:55 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://boost.org/";
|
|
|
|
description = "Boost C++ Library Collection";
|
|
|
|
license = "boost-license";
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.viric stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|