@ -97,9 +97,9 @@ let
in
stdenv . mkDerivation {
name = " b o o s t - ${ version } " ;
p name = " b o o s t " ;
inherit src ;
inherit src version ;
patchFlags = " " ;
@ -112,11 +112,10 @@ stdenv.mkDerivation {
meta = {
homepage = http://boost.org/ ;
description = " C o l l e c t i o n o f C + + l i b r a r i e s " ;
license = stdenv . lib . licenses . boost ;
license = licenses . boost ;
platforms = platforms . unix ++ platforms . windows ;
badPlatforms = stdenv . lib . optional ( versionOlder version " 1 . 5 9 " ) " a a r c h 6 4 - l i n u x "
++ stdenv . lib . optional ( ( versionOlder version " 1 . 5 7 " ) || version == " 1 . 5 8 " ) " x 8 6 _ 6 4 - d a r w i n " ;
badPlatforms = optional ( versionOlder version " 1 . 5 9 " ) " a a r c h 6 4 - l i n u x "
++ optional ( ( versionOlder version " 1 . 5 7 " ) || version == " 1 . 5 8 " ) " x 8 6 _ 6 4 - d a r w i n " ;
maintainers = with maintainers ; [ peti ] ;
} ;
@ -158,16 +157,22 @@ stdenv.mkDerivation {
++ optional ( toolset != null ) " - - w i t h - t o o l s e t = ${ toolset } " ;
buildPhase = ''
runHook preBuild
./b2 $ { b2Args }
runHook postBuild
'' ;
installPhase = ''
runHook preInstall
# boostbook is needed by some applications
mkdir - p $ dev/share/boostbook
cp - a tools/boostbook / { xsl , dtd } $ dev/share/boostbook /
# Let boost install everything else
./b2 $ { b2Args } install
runHook postInstall
'' ;
postFixup = ''