2017-06-27 17:00:40 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-09-15 00:10:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-06-28 10:40:31 +02:00
|
|
|
name = "boost-build-${version}";
|
2017-06-27 17:00:40 +02:00
|
|
|
version = "2016.03";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boostorg";
|
|
|
|
repo = "build";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
|
2014-09-15 00:10:03 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 11:59:09 +01:00
|
|
|
|
2014-09-15 00:10:03 +02: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 17:00:40 +02:00
|
|
|
./bootstrap.sh
|
2014-09-15 00:10:03 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-06-27 17:00:40 +02:00
|
|
|
./b2 install --prefix=$out
|
2014-09-15 00:10:03 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.boost.org/boost-build2/;
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.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
|
|
|
};
|
|
|
|
}
|