Skip to content

File tree

pkgs/applications/networking/browsers/chromium/common.nix

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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, libxslt, libxml2, at-spi2-core
@@ -128,7 +127,6 @@ let
128127
ninja which python2Packages.python perl pkgconfig
129128
python2Packages.ply python2Packages.jinja2 nodejs
130129
gnutar python2Packages.setuptools
131-
(xorg.xcbproto.override { python = python2Packages.python; })
132130
];
133131

134132
buildInputs = defaultDependencies ++ [
@@ -146,9 +144,7 @@ let
146144
++ optional pulseSupport libpulseaudio
147145
++ optionals useOzone [ libdrm wayland mesa_drivers libxkbcommon ];
148146

149-
patches = optionals (versionRange "68" "86") [
150-
./patches/nix_plugin_paths_68.patch
151-
] ++ [
147+
patches = [
152148
./patches/remove-webp-include-69.patch
153149
./patches/no-build-timestamps.patch
154150
./patches/widevine-79.patch
@@ -162,18 +158,19 @@ let
162158
#
163159
# ++ optionals (channel == "dev") [ ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" ) ]
164160
# ++ optional (versionRange "68" "72") ( githubPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000" )
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-
];
161+
]; # TODO: VA-API patches (we should be able to drop enable-video-acceleration-on-linux.patch now):
162+
# ++ optionals (useVaapi && versionRange "68" "86") [ # Improvements for the VA-API build:
163+
# ./patches/enable-vdpau-support-for-nvidia.patch # https://aur.archlinux.org/cgit/aur.git/tree/vdpau-support.patch?h=chromium-vaapi
164+
# ./patches/enable-video-acceleration-on-linux.patch # Can be controlled at runtime (i.e. without rebuilding Chromium)
165+
# ];
169166

170-
postPatch = optionalString (!versionRange "0" "86") ''
167+
postPatch = ''
171168
# Required for patchShebangs (unsupported interpreter directive, basename: invalid option -- '*', etc.):
172169
substituteInPlace native_client/SConstruct \
173170
--replace "#! -*- python -*-" ""
174171
substituteInPlace third_party/harfbuzz-ng/src/src/update-unicode-tables.make \
175172
--replace "/usr/bin/env -S make -f" "/usr/bin/make -f"
176-
'' + ''
173+
177174
# We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
178175
substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \
179176
--replace \
@@ -191,11 +188,6 @@ let
191188
'/usr/share/locale/' \
192189
'${glibc}/share/locale/'
193190
194-
substituteInPlace ui/gfx/x/BUILD.gn \
195-
--replace \
196-
'/usr/share/xcb' \
197-
'${xorg.xcbproto}/share/xcb/'
198-
199191
sed -i -e 's@"\(#!\)\?.*xdg-@"\1${xdg_utils}/bin/xdg-@' \
200192
chrome/browser/shell_integration_linux.cc
201193

pkgs/applications/networking/browsers/chromium/default.nix

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ newScope, config, stdenv, fetchurl, makeWrapper
2-
, llvmPackages_10, llvmPackages_11, ed, gnugrep, coreutils, xdg_utils
2+
, llvmPackages_11, ed, gnugrep, coreutils, xdg_utils
33
, glib, gtk3, gnome3, gsettings-desktop-schemas, gn, fetchgit
44
, libva ? null
55
, gcc, nspr, nss, patchelfUnstable, runCommand
@@ -22,7 +22,7 @@
2222
}:
2323

2424
let
25-
llvmPackages = llvmPackages_10;
25+
llvmPackages = llvmPackages_11;
2626
stdenv = llvmPackages.stdenv;
2727

2828
callPackage = newScope chromium;
@@ -36,16 +36,6 @@ let
3636
inherit channel gnome gnomeSupport gnomeKeyringSupport proprietaryCodecs
3737
cupsSupport pulseSupport useOzone;
3838
# TODO: Remove after we can update gn for the stable channel (backward incompatible changes):
39-
gnChromium = gn.overrideAttrs (oldAttrs: {
40-
version = "2020-05-19";
41-
src = fetchgit {
42-
url = "https://gn.googlesource.com/gn";
43-
rev = "d0a6f072070988e7b038496c4e7d6c562b649732";
44-
sha256 = "0197msabskgfbxvhzq73gc3wlr3n9cr4bzrhy5z5irbvy05lxk17";
45-
};
46-
});
47-
} // lib.optionalAttrs (lib.versionAtLeast upstream-info.version "86") {
48-
llvmPackages = llvmPackages_11;
4939
gnChromium = gn.overrideAttrs (oldAttrs: {
5040
version = "2020-07-20";
5141
src = fetchgit {

pkgs/applications/networking/browsers/chromium/patches/nix_plugin_paths_68.patch

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"stable": {
3-
"version": "85.0.4183.121",
4-
"sha256": "0a1xn39kmvyfpal6pgnylpy30z0322p3v7sx6vxi0r2naiz58670",
5-
"sha256bin64": "08vqf1v91703aik47344bl409rsl4myar9bsd2lsvzqncncwsaca"
3+
"version": "86.0.4240.75",
4+
"sha256": "1ddw4p9zfdzhi5hrd8x14k4w326znljzprnpfi2f917rlpnl2ynx",
5+
"sha256bin64": "17isxkd80rccqim6izzl08vw4yr52qsk6djp1rmhhijzg9rsvghz"
66
},
77
"beta": {
8-
"version": "86.0.4240.42",
9-
"sha256": "06cfhiym9xmz2q86v6b6xcicrrp2pmr7karavylzz4fqvwd2v6fa",
10-
"sha256bin64": "1z5zmdc2i31iimps7p5z43vv4qi83c8ljb7x68zc1rvf8x62p7xj"
8+
"version": "86.0.4240.75",
9+
"sha256": "1ddw4p9zfdzhi5hrd8x14k4w326znljzprnpfi2f917rlpnl2ynx",
10+
"sha256bin64": "16snxdka5bkbvybx6x0dzgfbfaifv0jcc1dcny6vlqqp2fmb2v39"
1111
},
1212
"dev": {
13-
"version": "87.0.4263.3",
14-
"sha256": "1ybfrlm4417lpbg5qcwhq5p6nnxrw68wzyy5zvb1sg1ma8s9hhkk",
15-
"sha256bin64": "1f7a272kalglmdwmrrzb4iw3crvvpv3mhxca5jh75qpldn4gby6m"
13+
"version": "87.0.4278.0",
14+
"sha256": "1ywmv4iwn2as7vk2n0pslnmr300fl5y809ynxiw5xqcx9j6i8w85",
15+
"sha256bin64": "15dvwvk6l6n7l04085hr48hlvsijypasyk7d8iq3s6cxai3wx4cl"
1616
}
1717
}

0 commit comments

Comments
 (0)