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
|
@ -28,7 +28,9 @@
|
||||||
# WARNING: NEVER set any of the options below to `true` by default.
|
# WARNING: NEVER set any of the options below to `true` by default.
|
||||||
# Set to `privacySupport` or `false`.
|
# 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
|
, geolocationSupport ? !privacySupport
|
||||||
, googleAPISupport ? geolocationSupport
|
, googleAPISupport ? geolocationSupport
|
||||||
, crashreporterSupport ? false
|
, crashreporterSupport ? false
|
||||||
|
|
|
@ -12,6 +12,12 @@ let
|
||||||
./fix-pa-context-connect-retval.patch
|
./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
|
in
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
@ -26,7 +32,7 @@ rec {
|
||||||
|
|
||||||
patches = nixpkgsPatches ++ [
|
patches = nixpkgsPatches ++ [
|
||||||
./no-buildconfig.patch
|
./no-buildconfig.patch
|
||||||
];
|
] ++ lib.optional stdenv.isAarch64 firefox60_aarch64_skia_patch;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A web browser built from Firefox source tree";
|
description = "A web browser built from Firefox source tree";
|
||||||
|
@ -68,7 +74,7 @@ rec {
|
||||||
|
|
||||||
patches = nixpkgsPatches ++ [
|
patches = nixpkgsPatches ++ [
|
||||||
./no-buildconfig.patch
|
./no-buildconfig.patch
|
||||||
];
|
] ++ lib.optional stdenv.isAarch64 firefox60_aarch64_skia_patch;
|
||||||
|
|
||||||
meta = firefox.meta // {
|
meta = firefox.meta // {
|
||||||
description = "A web browser built from Firefox Extended Support Release source tree";
|
description = "A web browser built from Firefox Extended Support Release source tree";
|
||||||
|
|
Loading…
Reference in New Issue