summary refs log tree commit diff
path: root/pkgs/development/libraries/boost/header-only-wrapper.nix
blob: 96c9216a371b005b07a666f3499d965d90383e8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ 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 = boost.src;

  phases = [ "installPhase" ];

  installPhase = ''
    mkdir -p $out/include
    tar xf $src -C $out/include --strip-components=1 ${pkgid}/boost
  '';

  preferLocalBuild = true;

  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 ];
  };
}