blob: 8ce475c893d5fc154c1c844265d716858ff06440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "boost-build";
version = "2016.03";
src = fetchFromGitHub {
owner = "boostorg";
repo = "build";
rev = version;
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
};
hardeningDisable = [ "format" ];
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 = ''
./bootstrap.sh
'';
installPhase = ''
./b2 install --prefix=$out
'';
meta = with stdenv.lib; {
homepage = "http://www.boost.org/boost-build2/";
license = stdenv.lib.licenses.boost;
platforms = platforms.unix;
maintainers = with maintainers; [ ivan-tkatchev ];
};
}
|