···44 # source tree.
45 extraAttrs = buildFun base;
460000047 mkGnFlags =
48 let
49 # Serialize Nix types into GN types according to this document:
···139 # for updated patches and hints about build flags
140 ++ optionals (versionRange "63" "64") [
141 ./patches/chromium-gcc5-r4.patch
0142 ./patches/include-math-for-round.patch
143- ]
144- ++ optional enableWideVine ./patches/widevine.patch;
00000145146 postPatch = ''
147 # We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
···44 # source tree.
45 extraAttrs = buildFun base;
4647+ gentooPatch = name: sha256: fetchurl {
48+ url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/files/${name}";
49+ inherit sha256;
50+ };
51+52 mkGnFlags =
53 let
54 # Serialize Nix types into GN types according to this document:
···144 # for updated patches and hints about build flags
145 ++ optionals (versionRange "63" "64") [
146 ./patches/chromium-gcc5-r4.patch
147+ (gentooPatch "chromium-gcc5-r5.patch" "0z7rggizzg85wfr8zhw0yfwd3q69lsh3yp297s939jgzp66cwwkw")
148 ./patches/include-math-for-round.patch
149+ ] ++ optionals (versionRange "64" "65") [
150+ ## This is a first guess on what patches are needed for 64
151+ # (gentooPatch "chromium-memcpy-r0.patch" "1d3vra59wjg2lva7ddv55ff6l57mk9k50llsplr0b7vxk0lh0ps5")
152+ (gentooPatch "chromium-cups-r0.patch" "0hyjlfh062c8h54j4b27y4dq5yzd4w6mxzywk3s02yf6cj3cbkrl")
153+ # (gentooPatch "chromium-clang-r2.patch" "1lsqr7cbjsad5pyyp6kyrfmcgcqy2z2yzgp4zxwjq95fknrfi5a4")
154+ (gentooPatch "chromium-angle-r0.patch" "0izdrqwsyr48117dhvwdsk8c6dkrnq2njida1q4mb1lagvwbz7gc")
155+ ] ++ optional enableWideVine ./patches/widevine.patch;
156157 postPatch = ''
158 # We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX