2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2014-09-14 23:10:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "boost-build";
|
2017-06-27 16:00:40 +01:00
|
|
|
version = "2016.03";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boostorg";
|
|
|
|
repo = "build";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
|
2014-09-14 23:10:03 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 10:59:09 +00:00
|
|
|
|
2014-09-14 23:10:03 +01:00
|
|
|
patchPhase = ''
|
|
|
|
grep -r '/usr/share/boost-build' \
|
|
|
|
| awk '{split($0,a,":"); print a[1];}' \
|
|
|
|
| xargs sed -i "s,/usr/share/boost-build,$out/share/boost-build,"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2017-06-27 16:00:40 +01:00
|
|
|
./bootstrap.sh
|
2014-09-14 23:10:03 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-06-27 16:00:40 +01:00
|
|
|
./b2 install --prefix=$out
|
2014-09-14 23:10:03 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.boost.org/boost-build2/";
|
2021-01-23 12:26:19 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|