chromium: Drop Python 2

Yay, finally!... \o/ :)
Upstream issue: https://crbug.com/942720
This commit is contained in:
Michael Weiss 2021-10-13 20:55:01 +02:00
parent 2da91cb1f4
commit ae522fb7f9
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -6,7 +6,7 @@
# Native build inputs:
, ninja, pkg-config
, python2, python3, perl
, python3, perl
, gnutar, which
, llvmPackages
# postPatch:
@ -56,6 +56,10 @@ let
python3WithPackages = python3.withPackages(ps: with ps; [
ply jinja2 setuptools
]);
clangFormatPython3 = fetchurl {
url = "https://chromium.googlesource.com/chromium/tools/build/+/e77882e0dde52c2ccf33c5570929b75b4a2a2522/recipes/recipe_modules/chromium/resources/clang-format?format=TEXT";
sha256 = "0ic3hn65dimgfhakli1cyf9j3cxcqsf1qib706ihfhmlzxf7256l";
};
# The additional attributes for creating derivations based on the chromium
# source tree.
@ -122,7 +126,7 @@ let
nativeBuildInputs = [
ninja pkg-config
python2 python3WithPackages perl
python3WithPackages perl
gnutar which
llvmPackages.bintools
];
@ -209,6 +213,9 @@ let
# Allow to put extensions into the system-path.
sed -i -e 's,/usr,/run/current-system/sw,' chrome/common/chrome_paths.cc
# We need the fix for https://bugs.chromium.org/p/chromium/issues/detail?id=1254408:
base64 --decode ${clangFormatPython3} > buildtools/linux64/clang-format
patchShebangs .
# Link to our own Node.js and Java (required during the build):
mkdir -p third_party/node/linux/node-linux-x64/bin