about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/boost-build/default.nix
blob: a821e661a604bf9b3890a5d06470b3e2f4d24009 (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
31
32
33
34
35
36
37
38
39
40
41
{ lib
, stdenv
, fetchFromGitHub
, bison
}:

stdenv.mkDerivation rec {
  pname = "boost-build";
  version = "4.4.1";

  src = fetchFromGitHub {
    owner = "boostorg";
    repo = "build";
    rev = version;
    sha256 = "1r4rwlq87ydmsdqrik4ly5iai796qalvw7603mridg2nwcbbnf54";
  };

  nativeBuildInputs = [
    bison
  ];

  buildPhase = ''
    runHook preBuild
    ./bootstrap.sh
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    ./b2 install --prefix="$out"
    ln -s b2 "$out/bin/bjam"
    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://www.boost.org/build/";
    license = lib.licenses.boost;
    platforms = platforms.unix;
    maintainers = with maintainers; [ ivan-tkatchev ];
  };
}