2013-07-03 19:38:34 +00:00
|
|
|
{ stdenv, fetchurl, boost }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = stdenv.lib.removePrefix "boost-" boost.name;
|
|
|
|
pkgid = stdenv.lib.replaceChars ["-" "."] ["_" "_"] boost.name;
|
|
|
|
in
|
2013-02-06 11:33:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-07-03 19:38:34 +00:00
|
|
|
name = "boost-headers-${version}";
|
2013-02-06 11:33:55 +00:00
|
|
|
|
2013-11-12 22:28:27 +00:00
|
|
|
src = boost.src;
|
2013-02-06 11:33:55 +00:00
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
2013-07-03 19:38:34 +00:00
|
|
|
tar xf $src -C $out/include --strip-components=1 ${pkgid}/boost
|
2013-02-06 11:33:55 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|