@@ -13,7 +13,6 @@
1313, bison, gperf
1414, glib, gtk3, dbus-glib
1515, glibc
16−, xorg
1716, libXScrnSaver, libXcursor, libXtst, libGLU, libGL
1817, protobuf, speechd, libXdamage, cups
1918, ffmpeg_3, libxslt, libxml2, at-spi2-core
@@ -131,7 +130,6 @@ let
131130 ninja which python2Packages.python perl pkgconfig
132131 python2Packages.ply python2Packages.jinja2 nodejs
133132 gnutar python2Packages.setuptools
134− (xorg.xcbproto.override { python = python2Packages.python; })
135133 ];
136134
137135 buildInputs = defaultDependencies ++ [
@@ -150,13 +148,10 @@ let
150148 ++ optional pulseSupport libpulseaudio
151149 ++ optionals useOzone [ libdrm wayland mesa_drivers libxkbcommon ];
152150
153− patches = optionals (versionRange "68" "86") [
154− ./patches/nix_plugin_paths_68.patch
155− ] ++ [
151+ patches = [
156152 ./patches/remove-webp-include-69.patch
157153 ./patches/no-build-timestamps.patch
158154 ./patches/widevine-79.patch
159− ./patches/dont-use-ANGLE-by-default.patch
160155 # Unfortunately, chromium regularly breaks on major updates and
161156 # then needs various patches backported in order to be compiled with GCC.
162157 # Good sources for such patches and other hints:
@@ -166,18 +161,19 @@ let
166161 #
167162 # ++ optionals (channel == "dev") [ ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" ) ]
168163 # ++ optional (versionRange "68" "72") ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" )
169− ] ++ optionals (useVaapi && versionRange "68" "86") [ # Improvements for the VA-API build:
170− ./patches/enable-vdpau-support-for-nvidia.patch # https://aur.archlinux.org/cgit/aur.git/tree/vdpau-support.patch?h=chromium-vaapi
171− ./patches/enable-video-acceleration-on-linux.patch # Can be controlled at runtime (i.e. without rebuilding Chromium)
172− ];
164+ ]; # TODO: VA-API patches (we should be able to drop enable-video-acceleration-on-linux.patch now):
165+ # ++ optionals (useVaapi && versionRange "68" "86") [ # Improvements for the VA-API build:
166+ # ./patches/enable-vdpau-support-for-nvidia.patch # https://aur.archlinux.org/cgit/aur.git/tree/vdpau-support.patch?h=chromium-vaapi
167+ # ./patches/enable-video-acceleration-on-linux.patch # Can be controlled at runtime (i.e. without rebuilding Chromium)
168+ # ];
173169
174− postPatch = optionalString (!versionRange "0" "86") ''
170+ postPatch = ''
175171 # Required for patchShebangs (unsupported interpreter directive, basename: invalid option -- '*', etc.):
176172 substituteInPlace native_client/SConstruct \
177173 --replace "#! -*- python -*-" ""
178174 substituteInPlace third_party/harfbuzz-ng/src/src/update-unicode-tables.make \
179175 --replace "/usr/bin/env -S make -f" "/usr/bin/make -f"
180− '' + ''
176+
181177 # We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
182178 substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \
183179 --replace \
@@ -195,11 +191,6 @@ let
195191 '/usr/share/locale/' \
196192 '${glibc}/share/locale/'
197193
198− substituteInPlace ui/gfx/x/BUILD.gn \
199− --replace \
200− '/usr/share/xcb' \
201− '${xorg.xcbproto}/share/xcb/'
202−
203194 sed -i -e 's@"\(#!\)\?.*xdg-@"\1${xdg_utils}/bin/xdg-@' \
204195 chrome/browser/shell_integration_linux.cc
205196