v8-3_16_14 tweaks for the build on darwin

The build was originally failing due to a missing libtool. Trying to add
the buildInput "libtool" did not work out, since a few command line
arguments are not supported. I've applied the same workaround as for
"xcodebuild".

The second change is about the install step, where the path of
"libv8.dylib" was just slightly different.
This commit is contained in:
Johannes Bornhold 2016-11-02 23:29:31 +01:00
parent 3c6e0f1207
commit b27932a65b

View File

@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
configurePhase = stdenv.lib.optionalString stdenv.isDarwin '' configurePhase = stdenv.lib.optionalString stdenv.isDarwin ''
ln -s /usr/bin/xcodebuild $TMPDIR ln -s /usr/bin/xcodebuild $TMPDIR
ln -s /usr/bin/libtool $TMPDIR
export PATH=$TMPDIR:$PATH export PATH=$TMPDIR:$PATH
'' + '' '' + ''
PYTHONPATH="tools/generate_shim_headers:$PYTHONPATH" \ PYTHONPATH="tools/generate_shim_headers:$PYTHONPATH" \
@ -57,8 +58,8 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
install -vD out/Release/d8 "$out/bin/d8" install -vD out/Release/d8 "$out/bin/d8"
${if stdenv.system == "x86_64-darwin" then '' ${if stdenv.isDarwin then ''
install -vD out/Release/lib.target/libv8.dylib "$out/lib/libv8.dylib" install -vD out/Release/libv8.dylib "$out/lib/libv8.dylib"
'' else '' '' else ''
install -vD out/Release/lib.target/libv8.so "$out/lib/libv8.so" install -vD out/Release/lib.target/libv8.so "$out/lib/libv8.so"
''} ''}