Merge pull request #26903 from ivan-tkatchev/pullrequest4
boost-build: update to version 2016.03
This commit is contained in:
commit
5e044b9dc8
|
@ -1,11 +1,14 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "boost-build-2.0-m12";
|
name = "boost-build-${version}";
|
||||||
|
version = "2016.03";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/boost/${name}.tar.bz2";
|
owner = "boostorg";
|
||||||
sha256 = "10sbbkx2752r4i1yshyp47nw29lyi1p34sy6hj7ivvnddiliayca";
|
repo = "build";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
@ -17,30 +20,17 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd jam_src
|
./bootstrap.sh
|
||||||
./build.sh
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
# Install Bjam
|
./b2 install --prefix=$out
|
||||||
mkdir -p $out/bin
|
|
||||||
cd "$(ls | grep bin)"
|
|
||||||
cp -a bjam $out/bin
|
|
||||||
|
|
||||||
# Bjam is B2
|
|
||||||
ln -s bjam $out/bin/b2
|
|
||||||
|
|
||||||
# Install the shared files (don't include jam_src)
|
|
||||||
cd ../..
|
|
||||||
rm -rf jam_src
|
|
||||||
mkdir -p $out/share
|
|
||||||
cp -a . $out/share/boost-build
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.boost.org/boost-build2/;
|
homepage = http://www.boost.org/boost-build2/;
|
||||||
license = stdenv.lib.licenses.boost;
|
license = stdenv.lib.licenses.boost;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ wkennington ];
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue