at 18.03-beta 36 lines 814 B view raw
1{ stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 name = "boost-build-${version}"; 5 version = "2016.03"; 6 7 src = fetchFromGitHub { 8 owner = "boostorg"; 9 repo = "build"; 10 rev = version; 11 sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p"; 12 }; 13 14 hardeningDisable = [ "format" ]; 15 16 patchPhase = '' 17 grep -r '/usr/share/boost-build' \ 18 | awk '{split($0,a,":"); print a[1];}' \ 19 | xargs sed -i "s,/usr/share/boost-build,$out/share/boost-build," 20 ''; 21 22 buildPhase = '' 23 ./bootstrap.sh 24 ''; 25 26 installPhase = '' 27 ./b2 install --prefix=$out 28 ''; 29 30 meta = with stdenv.lib; { 31 homepage = http://www.boost.org/boost-build2/; 32 license = stdenv.lib.licenses.boost; 33 platforms = platforms.unix; 34 maintainers = with maintainers; [ ivan-tkatchev ]; 35 }; 36}