chromium: fix aarch64 build (#48586)
* chromium: fix aarch64 build * chromium: use more stable urls
This commit is contained in:
parent
7131749bee
commit
0c8cdb53f6
@ -140,8 +140,26 @@ let
|
|||||||
./patches/fix-freetype.patch
|
./patches/fix-freetype.patch
|
||||||
./patches/nix_plugin_paths_68.patch
|
./patches/nix_plugin_paths_68.patch
|
||||||
./patches/remove-webp-include-69.patch
|
./patches/remove-webp-include-69.patch
|
||||||
] ++ optional enableWideVine ./patches/widevine.patch;
|
] ++ optional enableWideVine ./patches/widevine.patch
|
||||||
|
++ optional ((versionRange "69" "70") && stdenv.isAarch64)
|
||||||
|
(fetchpatch {
|
||||||
|
url = https://raw.githubusercontent.com/OSSystems/meta-browser/e4a667deaaf9a26a3a1aeb355770d1f29da549ad/recipes-browser/chromium/files/0001-vpx_sum_squares_2d_i16_neon-Make-s2-a-uint64x1_t.patch;
|
||||||
|
sha256 = "0f37rsjx7jcvdngkj8y6600091nwgn4jci0ny7bxlapq0zx2a4x7";
|
||||||
|
})
|
||||||
|
++ optional stdenv.isAarch64
|
||||||
|
(if (versionOlder version "71") then
|
||||||
|
fetchpatch {
|
||||||
|
url = https://raw.githubusercontent.com/OSSystems/meta-browser/e4a667deaaf9a26a3a1aeb355770d1f29da549ad/recipes-browser/chromium/files/aarch64-skia-build-fix.patch;
|
||||||
|
sha256 = "0dkchqair8cy2f5a5p5vi24r9b4d28pgn2bfvm1568lypbjw6iab";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
fetchpatch {
|
||||||
|
url = https://raw.githubusercontent.com/OSSystems/meta-browser/e4a667deaaf9a26a3a1aeb355770d1f29da549ad/recipes-browser/chromium/files/aarch64-skia-build-fix.patch;
|
||||||
|
postFetch = "substituteInPlace $out --replace __aarch64__ SK_CPU_ARM64";
|
||||||
|
sha256 = "018fbdzyw9rvia8m0qkk5gv8q8gl7x34rrjbn7mi1fgxdsayn22s";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
|
# We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
|
||||||
substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \
|
substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \
|
||||||
|
Loading…
Reference in New Issue
Block a user