2017-06-27 16:00:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-09-14 23:10:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-06-28 09:40:31 +01:00
|
|
|
name = "boost-build-${version}";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.boost.org/boost-build2/;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.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
|
|
|
};
|
|
|
|
}
|