2017-06-27 15:00:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-09-14 22:10:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-06-28 08:40:31 +00:00
|
|
|
name = "boost-build-${version}";
|
2017-06-27 15:00:40 +00:00
|
|
|
version = "2016.03";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boostorg";
|
|
|
|
repo = "build";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
|
2014-09-14 22:10:03 +00:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 10:59:09 +00:00
|
|
|
|
2014-09-14 22:10:03 +00: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 15:00:40 +00:00
|
|
|
./bootstrap.sh
|
2014-09-14 22:10:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-06-27 15:00:40 +00:00
|
|
|
./b2 install --prefix=$out
|
2014-09-14 22:10:03 +00: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 22:10:03 +00:00
|
|
|
platforms = platforms.unix;
|
2017-06-27 15:00:40 +00:00
|
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
2014-09-14 22:10:03 +00:00
|
|
|
};
|
|
|
|
}
|