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
|
|
|
|
2013-11-12 23:28:27 +01:00
|
|
|
src = boost.src;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|