From 6e8b89157fcb935400e74ff32a2cb197896c31e9 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 24 Sep 2017 18:10:58 +0200 Subject: [PATCH] v8_6_x: fix sandbox build (/usr/bin/env dependency) --- pkgs/development/libraries/v8/6_x.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/v8/6_x.nix b/pkgs/development/libraries/v8/6_x.nix index 384c6d7d984..dc6a559d287 100644 --- a/pkgs/development/libraries/v8/6_x.nix +++ b/pkgs/development/libraries/v8/6_x.nix @@ -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 = ''