3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/boost-build/default.nix

47 lines
856 B
Nix
Raw Normal View History

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