diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-08-26 14:22:31 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2020-08-26 14:33:18 +0200 |
commit | 8815c9e1866d656594bd2576c59d7a83183fbd4b (patch) | |
tree | da974aa29ac60c0316a90b8aafb9b7b9e69c629b /pkgs/applications/networking/browsers | |
parent | bf0e13a322bbbd7f920d34f36974ab747d81ab89 (diff) |
chromiumDev: Fix "patchShebangs ."
Note: The following might also need to be updated: substituteStream(): WARNING: pattern '/usr/share/xcb' doesn't match anything in file 'ui/gfx/x/BUILD.gn'
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/common.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/common.nix b/pkgs/applications/networking/browsers/chromium/common.nix index fc243f8b0416d..7016887e99d40 100644 --- a/pkgs/applications/networking/browsers/chromium/common.nix +++ b/pkgs/applications/networking/browsers/chromium/common.nix @@ -165,7 +165,13 @@ let ./patches/enable-video-acceleration-on-linux.patch # Can be controlled at runtime (i.e. without rebuilding Chromium) ]; - postPatch = '' + postPatch = optionalString (!versionRange "0" "86") '' + # Required for patchShebangs (unsupported interpreter directive, basename: invalid option -- '*', etc.): + substituteInPlace native_client/SConstruct \ + --replace "#! -*- python -*-" "" + substituteInPlace third_party/harfbuzz-ng/src/src/update-unicode-tables.make \ + --replace "/usr/bin/env -S make -f" "/usr/bin/make -f" + '' + '' # We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \ --replace \ |