mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
firefox: fix build on aarch64 with version >= 60
The firefox build fails with an error referring to ssse2 which doesn't exist on aarch64.
This commit is contained in:
parent
16b6f53910
commit
780d122d72
2 changed files with 11 additions and 3 deletions
|
@ -28,7 +28,9 @@
|
|||
# WARNING: NEVER set any of the options below to `true` by default.
|
||||
# Set to `privacySupport` or `false`.
|
||||
|
||||
, webrtcSupport ? !privacySupport
|
||||
# webrtcSupport breaks the aarch64 build on version >= 60.
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1434589
|
||||
, webrtcSupport ? (if lib.versionAtLeast version "60" && stdenv.isAarch64 then false else !privacySupport)
|
||||
, geolocationSupport ? !privacySupport
|
||||
, googleAPISupport ? geolocationSupport
|
||||
, crashreporterSupport ? false
|
||||
|
|
|
@ -12,6 +12,12 @@ let
|
|||
./fix-pa-context-connect-retval.patch
|
||||
];
|
||||
|
||||
firefox60_aarch64_skia_patch = fetchpatch {
|
||||
name = "aarch64-skia.patch";
|
||||
url = https://src.fedoraproject.org/rpms/firefox/raw/8cff86d95da3190272d1beddd45b41de3148f8ef/f/build-aarch64-skia.patch;
|
||||
sha256 = "11acb0ms4jrswp7268nm2p8g8l4lv8zc666a5bqjbb09x9k6b78k";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
rec {
|
||||
|
@ -26,7 +32,7 @@ rec {
|
|||
|
||||
patches = nixpkgsPatches ++ [
|
||||
./no-buildconfig.patch
|
||||
];
|
||||
] ++ lib.optional stdenv.isAarch64 firefox60_aarch64_skia_patch;
|
||||
|
||||
meta = {
|
||||
description = "A web browser built from Firefox source tree";
|
||||
|
@ -68,7 +74,7 @@ rec {
|
|||
|
||||
patches = nixpkgsPatches ++ [
|
||||
./no-buildconfig.patch
|
||||
];
|
||||
] ++ lib.optional stdenv.isAarch64 firefox60_aarch64_skia_patch;
|
||||
|
||||
meta = firefox.meta // {
|
||||
description = "A web browser built from Firefox Extended Support Release source tree";
|
||||
|
|
Loading…
Reference in a new issue