9e98650f8d
The 'header-only-wrapper' expression can now wrap any version of boost that's passed to it as an argument.
31 lines
786 B
Nix
31 lines
786 B
Nix
{ stdenv, fetchurl, boost }:
|
|
|
|
let
|
|
version = stdenv.lib.removePrefix "boost-" boost.name;
|
|
pkgid = stdenv.lib.replaceChars ["-" "."] ["_" "_"] boost.name;
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "boost-headers-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/boost/${pkgid}.tar.bz2";
|
|
sha256 = "07df925k56pbz3gvhxpx54aij34qd40a7sxw4im11brnwdyr4zh4";
|
|
};
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include
|
|
tar xf $src -C $out/include --strip-components=1 ${pkgid}/boost
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|