@@ -22,7 +22,9 @@ common = { pname, version, sha1 }: stdenv.mkDerivation rec {
2222 name = "${pname}-${version}";
2323
2424 src = fetchurl {
25− url = "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${version}/source/firefox-${version}.source.tar.bz2";
25+ url =
26+ let ext = if lib.versionAtLeast version "41.0" then "xz" else "bz2";
27+ in "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${version}/source/firefox-${version}.source.tar.${ext}";
2628 inherit sha1;
2729 };
2830
@@ -77,6 +79,7 @@ common = { pname, version, sha1 }: stdenv.mkDerivation rec {
7779 "--disable-installer"
7880 "--disable-updater"
7981 "--enable-jemalloc"
82+ "--disable-gconf"
8083 ]
8184 ++ lib.optional enableGTK3 "--enable-default-toolkit=cairo-gtk3"
8285 ++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ]
@@ -137,8 +140,8 @@ in {
137140
138141 firefox = common {
139142 pname = "firefox";
140− version = "40.0.3";
141− sha1 = "6ddda46bd6540ab3ae932fbb5ffec8e9a85cab13";
143+ version = "41.0";
144+ sha1 = "0ce7a5ccdf671a6c98eaac07d06d49a895a99449";
142145 };
143146
144147 firefox-esr = common {