@@ -10,6 +10,7 @@
1010, hunspell, libevent, libstartup_notification, libvpx
1111, icu, libpng, jemalloc, glib
1212, autoconf213, which, gnused, cargo, rustc, llvmPackages
13+, rust-cbindgen, nodejs
1314, debugBuild ? false
1415
1516### optionals
@@ -111,7 +112,6 @@ stdenv.mkDerivation rec {
111112 "-I${glib.dev}/include/gio-unix-2.0"
112113 ]
113114 ++ lib.optionals (!isTorBrowserLike) [
114− "-I${nspr.dev}/include/nspr"
115115 "-I${nss.dev}/include/nss"
116116 ]
117117 ++ lib.optional stdenv.isDarwin [
@@ -121,12 +121,15 @@ stdenv.mkDerivation rec {
121121
122122 postPatch = lib.optionalString stdenv.isDarwin ''
123123 substituteInPlace js/src/jsmath.cpp --replace 'defined(HAVE___SINCOS)' 0
124+ '' + lib.optionalString (lib.versionAtLeast ffversion "63.0" && !isTorBrowserLike) ''
125+ substituteInPlace third_party/prio/prio/rand.c --replace 'nspr/prinit.h' 'prinit.h'
124126 '';
125127
126128 nativeBuildInputs =
127129 [ autoconf213 which gnused pkgconfig perl python2 cargo rustc ]
128130 ++ lib.optional gtk3Support wrapGAppsHook
129131 ++ lib.optionals stdenv.isDarwin [ xcbuild rsync ]
132+ ++ lib.optionals (lib.versionAtLeast ffversion "63.0") [ rust-cbindgen nodejs ]
130133 ++ extraNativeBuildInputs;
131134
132135 preConfigure = ''