firefox: fallback to nss_3_53 when version is below 83
This commit is contained in:
parent
cbd0f8931c
commit
c1cfe8b84e
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{ lib, stdenv, pkgconfig, pango, perl, python2, python3, zip
|
{ lib, stdenv, pkgconfig, pango, perl, python2, python3, zip
|
||||||
, libjpeg, zlib, dbus, dbus-glib, bzip2, xorg
|
, libjpeg, zlib, dbus, dbus-glib, bzip2, xorg
|
||||||
, freetype, fontconfig, file, nspr, nss, libnotify
|
, freetype, fontconfig, file, nspr, nss, nss_3_53, libnotify
|
||||||
, yasm, libGLU, libGL, sqlite, unzip, makeWrapper
|
, yasm, libGLU, libGL, sqlite, unzip, makeWrapper
|
||||||
, hunspell, libXdamage, libevent, libstartup_notification
|
, hunspell, libXdamage, libevent, libstartup_notification
|
||||||
, libvpx_1_8
|
, libvpx_1_8
|
||||||
@ -106,6 +106,8 @@ let
|
|||||||
# 78 ESR won't build with rustc 1.47
|
# 78 ESR won't build with rustc 1.47
|
||||||
inherit (if lib.versionAtLeast ffversion "82" then rustPackages else rustPackages_1_45)
|
inherit (if lib.versionAtLeast ffversion "82" then rustPackages else rustPackages_1_45)
|
||||||
rustc cargo;
|
rustc cargo;
|
||||||
|
|
||||||
|
nss_pkg = if lib.versionOlder ffversion "83" then nss_3_53 else nss;
|
||||||
in
|
in
|
||||||
|
|
||||||
buildStdenv.mkDerivation ({
|
buildStdenv.mkDerivation ({
|
||||||
@ -169,7 +171,7 @@ buildStdenv.mkDerivation ({
|
|||||||
# yasm can potentially be removed in future versions
|
# yasm can potentially be removed in future versions
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1501796
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1501796
|
||||||
# https://groups.google.com/forum/#!msg/mozilla.dev.platform/o-8levmLU80/SM_zQvfzCQAJ
|
# https://groups.google.com/forum/#!msg/mozilla.dev.platform/o-8levmLU80/SM_zQvfzCQAJ
|
||||||
nspr nss
|
nspr nss_pkg
|
||||||
]
|
]
|
||||||
++ lib.optional alsaSupport alsaLib
|
++ lib.optional alsaSupport alsaLib
|
||||||
++ lib.optional pulseaudioSupport libpulseaudio # only headers are needed
|
++ lib.optional pulseaudioSupport libpulseaudio # only headers are needed
|
||||||
@ -190,7 +192,7 @@ buildStdenv.mkDerivation ({
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = toString [
|
NIX_CFLAGS_COMPILE = toString [
|
||||||
"-I${glib.dev}/include/gio-unix-2.0"
|
"-I${glib.dev}/include/gio-unix-2.0"
|
||||||
"-I${nss.dev}/include/nss"
|
"-I${nss_pkg.dev}/include/nss"
|
||||||
];
|
];
|
||||||
|
|
||||||
MACH_USE_SYSTEM_PYTHON = "1";
|
MACH_USE_SYSTEM_PYTHON = "1";
|
||||||
|
Loading…
Reference in New Issue
Block a user