mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
firefox: support building firefox 66 (and 60.6+)
This commit is contained in:
parent
b6fff67587
commit
d64d42f12d
2 changed files with 17 additions and 13 deletions
|
@ -11,7 +11,7 @@
|
||||||
, hunspell, libevent, libstartup_notification, libvpx
|
, hunspell, libevent, libstartup_notification, libvpx
|
||||||
, icu, libpng, jemalloc, glib
|
, icu, libpng, jemalloc, glib
|
||||||
, autoconf213, which, gnused, cargo, rustc, llvmPackages
|
, autoconf213, which, gnused, cargo, rustc, llvmPackages
|
||||||
, rust-cbindgen, nodejs
|
, rust-cbindgen, nodejs, nasm
|
||||||
, debugBuild ? false
|
, debugBuild ? false
|
||||||
|
|
||||||
### optionals
|
### optionals
|
||||||
|
@ -121,6 +121,12 @@ stdenv.mkDerivation rec {
|
||||||
]
|
]
|
||||||
++ lib.optionals (!isTorBrowserLike) [ nspr nss ]
|
++ lib.optionals (!isTorBrowserLike) [ nspr nss ]
|
||||||
++ lib.optional (lib.versionOlder ffversion "61") hunspell
|
++ lib.optional (lib.versionOlder ffversion "61") hunspell
|
||||||
|
|
||||||
|
# >= 66 requires nasm for the AV1 lib dav1d
|
||||||
|
# yasm can potentially be removed in future versions
|
||||||
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1501796
|
||||||
|
# https://groups.google.com/forum/#!msg/mozilla.dev.platform/o-8levmLU80/SM_zQvfzCQAJ
|
||||||
|
++ lib.optional (lib.versionAtLeast ffversion "66") nasm
|
||||||
++ lib.optional alsaSupport alsaLib
|
++ lib.optional alsaSupport alsaLib
|
||||||
++ lib.optional pulseaudioSupport libpulseaudio # only headers are needed
|
++ lib.optional pulseaudioSupport libpulseaudio # only headers are needed
|
||||||
++ lib.optional gtk3Support gtk3
|
++ lib.optional gtk3Support gtk3
|
||||||
|
@ -188,7 +194,13 @@ stdenv.mkDerivation rec {
|
||||||
# Note: These are for NixOS/nixpkgs use ONLY. For your own distribution,
|
# Note: These are for NixOS/nixpkgs use ONLY. For your own distribution,
|
||||||
# please get your own set of keys.
|
# please get your own set of keys.
|
||||||
echo "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI" > $TMPDIR/ga
|
echo "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI" > $TMPDIR/ga
|
||||||
configureFlagsArray+=("--with-google-api-keyfile=$TMPDIR/ga")
|
# 60.5+ & 66+ did split the google API key arguments: https://bugzilla.mozilla.org/show_bug.cgi?id=1531176
|
||||||
|
${if (lib.versionAtLeast ffversion "60.6" && lib.versionOlder ffversion "61") || (lib.versionAtLeast ffversion "66") then ''
|
||||||
|
configureFlagsArray+=("--with-google-location-service-api-keyfile=$TMPDIR/ga")
|
||||||
|
configureFlagsArray+=("--with-google-safebrowsing-api-keyfile=$TMPDIR/ga")
|
||||||
|
'' else ''
|
||||||
|
configureFlagsArray+=("--with-google-api-keyfile=$TMPDIR/ga")
|
||||||
|
''}
|
||||||
'' + lib.optionalString (lib.versionOlder ffversion "58") ''
|
'' + lib.optionalString (lib.versionOlder ffversion "58") ''
|
||||||
cd obj-*
|
cd obj-*
|
||||||
''
|
''
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp
|
--- a/toolkit/xre/nsXREDirProvider.cpp 2019-02-28 21:00:14.157543388 +0100
|
||||||
index 380c1c1..255539f 100644
|
+++ b/toolkit/xre/nsXREDirProvider.cpp 2019-02-28 21:01:28.731128320 +0100
|
||||||
--- a/toolkit/xre/nsXREDirProvider.cpp
|
@@ -302 +302,2 @@
|
||||||
+++ b/toolkit/xre/nsXREDirProvider.cpp
|
|
||||||
@@ -306,7 +306,8 @@ GetSystemParentDirectory(nsIFile** aFile)
|
|
||||||
"/usr/lib/mozilla"
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
- rv = NS_NewNativeLocalFile(dirname, false, getter_AddRefs(localDir));
|
- rv = NS_NewNativeLocalFile(dirname, false, getter_AddRefs(localDir));
|
||||||
+ const char* pathVar = PR_GetEnv("MOZ_SYSTEM_DIR");
|
+ const char* pathVar = PR_GetEnv("MOZ_SYSTEM_DIR");
|
||||||
+ rv = NS_NewNativeLocalFile((pathVar && *pathVar) ? nsDependentCString(pathVar) : reinterpret_cast<const nsCString&>(dirname), false, getter_AddRefs(localDir));
|
+ rv = NS_NewNativeLocalFile((pathVar && *pathVar) ? nsDependentCString(pathVar) : reinterpret_cast<const nsCString&>(dirname), false, getter_AddRefs(localDir));
|
||||||
#endif
|
|
||||||
|
|
||||||
if (NS_SUCCEEDED(rv)) {
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue