···
, xdg-utils, yasm, nasm, minizip, libwebp
, libusb1, pciutils, nss, re2
10
-
, python2Packages, perl, pkg-config
10
+
, python2Packages, python3Packages, perl, pkg-config
···
jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
45
+
# TODO: Python 3 support is incomplete and "python3 ../../build/util/python2_action.py"
46
+
# currently doesn't work due to mixed Python 2/3 dependencies:
47
+
pythonPackages = if chromiumVersionAtLeast "93"
48
+
then python3Packages
49
+
else python2Packages;
50
+
forcePython3Patch = (githubPatch
51
+
# Reland #8 of "Force Python 3 to be used in build."":
52
+
"a2d3c362802d9e6b62f895fcda75a3695b77b1b8"
53
+
"1r9spr2wmjk9x9l3m1gzn6692mlvbxdz0r5hlr5rfwiwr900rxi2"
# The additional attributes for creating derivations based on the chromium
···
llvmPackages.lldClang.bintools
130
-
ninja which python2Packages.python perl pkg-config
131
-
python2Packages.ply python2Packages.jinja2 nodejs
132
-
gnutar python2Packages.setuptools
140
+
ninja which pythonPackages.python perl pkg-config
141
+
pythonPackages.ply pythonPackages.jinja2 nodejs
142
+
gnutar pythonPackages.setuptools
buildInputs = defaultDependencies ++ [
···
postPatch = lib.optionalString (chromiumVersionAtLeast "91") ''
# Required for patchShebangs (unsupported):
chmod -x third_party/webgpu-cts/src/tools/deno
181
+
'' + optionalString (chromiumVersionAtLeast "92") ''
182
+
patch -p1 --reverse < ${forcePython3Patch}
# remove unused third-party
for lib in ${toString gnSystemLibraries}; do