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