Merge pull request #116415 from dotlambda/boost-build-4.4.1
boost-build: 2016.03 -> 4.4.1
This commit is contained in:
commit
2b7387487f
@ -1,34 +1,39 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, bison
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "boost-build";
|
pname = "boost-build";
|
||||||
version = "2016.03";
|
version = "4.4.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "boostorg";
|
owner = "boostorg";
|
||||||
repo = "build";
|
repo = "build";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
|
sha256 = "1r4rwlq87ydmsdqrik4ly5iai796qalvw7603mridg2nwcbbnf54";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
nativeBuildInputs = [
|
||||||
|
bison
|
||||||
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 = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
./b2 install --prefix=$out
|
runHook preInstall
|
||||||
|
./b2 install --prefix="$out"
|
||||||
|
ln -s b2 "$out/bin/bjam"
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://www.boost.org/boost-build2/";
|
homepage = "https://www.boost.org/build/";
|
||||||
license = lib.licenses.boost;
|
license = lib.licenses.boost;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ ivan-tkatchev ];
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
||||||
|
Loading…
Reference in New Issue
Block a user