chromium: temporarily work around stdenv/patchShebangs.sh bug

This commit is contained in:
emilylange 2023-09-17 14:08:00 +02:00
parent c62013004e
commit df39696f6b
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -294,6 +294,12 @@ let
# We need the fix for https://bugs.chromium.org/p/chromium/issues/detail?id=1254408:
base64 --decode ${clangFormatPython3} > buildtools/linux64/clang-format
# Add final newlines to scripts that do not end with one.
# This is a temporary workaround until https://github.com/NixOS/nixpkgs/pull/255463 (or similar) has been merged,
# as patchShebangs hard-crashes when it encounters files that contain only a shebang and do not end with a final
# newline.
find . -type f -perm -0100 -exec sed -i -e '$a\' {} +
patchShebangs .
# Link to our own Node.js and Java (required during the build):
mkdir -p third_party/node/linux/node-linux-x64/bin