2021-03-15 14:47:46 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, bison
|
|
|
|
}:
|
2014-09-15 00:10:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "boost-build";
|
2021-03-15 14:47:46 +01:00
|
|
|
version = "4.4.1";
|
2017-06-27 17:00:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boostorg";
|
|
|
|
repo = "build";
|
|
|
|
rev = version;
|
2021-03-15 14:47:46 +01:00
|
|
|
sha256 = "1r4rwlq87ydmsdqrik4ly5iai796qalvw7603mridg2nwcbbnf54";
|
2014-09-15 00:10:03 +02:00
|
|
|
};
|
|
|
|
|
2021-05-11 15:21:13 +02:00
|
|
|
patches = [
|
|
|
|
# Upstream defaults to gcc on darwin, but we use clang.
|
|
|
|
./darwin-default-toolset.patch
|
|
|
|
];
|
|
|
|
|
2021-03-15 14:47:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
];
|
2014-09-15 00:10:03 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
2021-03-15 14:47:46 +01:00
|
|
|
runHook preBuild
|
2017-06-27 17:00:40 +02:00
|
|
|
./bootstrap.sh
|
2021-03-15 14:47:46 +01:00
|
|
|
runHook postBuild
|
2014-09-15 00:10:03 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-15 14:47:46 +01:00
|
|
|
runHook preInstall
|
|
|
|
./b2 install --prefix="$out"
|
|
|
|
ln -s b2 "$out/bin/bjam"
|
|
|
|
runHook postInstall
|
2014-09-15 00:10:03 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2021-03-15 14:47:46 +01:00
|
|
|
homepage = "https://www.boost.org/build/";
|
2021-01-23 13:26:19 +01:00
|
|
|
license = lib.licenses.boost;
|
2014-09-15 00:10:03 +02:00
|
|
|
platforms = platforms.unix;
|
2017-06-27 17:00:40 +02:00
|
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
2014-09-15 00:10:03 +02:00
|
|
|
};
|
|
|
|
}
|