v8_6_x: fix sandbox build (/usr/bin/env dependency)

This commit is contained in:
Stefan Siegl 2017-09-24 18:10:58 +02:00
parent e14ac35238
commit 6e8b89157f
No known key found for this signature in database
GPG key ID: B224EC6857AD7F9B

View file

@ -122,9 +122,13 @@ stdenv.mkDerivation rec {
# disable tests
if [ "$doCheck" = "" ]; then sed -i -e '/"test:gn_all",/d' BUILD.gn; fi
# disable sysroot usage
chmod u+w build/config build/config/sysroot.gni
sed -i build/config/sysroot.gni \
-e '/use_sysroot =/ { s#\(use_sysroot =\).*#\1 false#; :a n; /current_cpu/ { s/^/#/; ba }; }'
# patch shebangs (/usr/bin/env)
patchShebangs tools/dev/v8gen.py
'';
configurePhase = ''