Skip to content

Commit

Permalink
Merge pull request #32956 from pbogdan/update-firefox-17.09
Browse files Browse the repository at this point in the history
[WIP/RFC] update firefox on 17.09
  • Loading branch information
grahamc committed Dec 24, 2017
2 parents 67de94a + 6f86252 commit 53e6d67
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 15 deletions.
3 changes: 1 addition & 2 deletions pkgs/applications/networking/browsers/firefox/common.nix
Expand Up @@ -128,8 +128,7 @@ stdenv.mkDerivation (rec {
"--disable-gconf"
"--enable-default-toolkit=cairo-gtk${if gtk3Support then "3" else "2"}"
]
++ lib.optionals (stdenv.lib.versionAtLeast version "56" && !stdenv.hostPlatform.isi686) [
# on i686-linux: --with-libclang-path is not available in this configuration
++ lib.optionals (stdenv.lib.versionAtLeast version "56") [
"--with-libclang-path=${llvmPackages.clang-unwrapped}/lib"
"--with-clang-path=${llvmPackages.clang}/bin/clang"
]
Expand Down
12 changes: 4 additions & 8 deletions pkgs/applications/networking/browsers/firefox/packages.nix
@@ -1,23 +1,19 @@
{ lib, callPackage, stdenv, overrideCC, gcc5, fetchurl, fetchFromGitHub, fetchpatch }:
{ lib, callPackage, stdenv, overrideCC, gcc5, fetchurl, fetchFromGitHub }:

let common = opts: callPackage (import ./common.nix opts); in

rec {

firefox = common rec {
pname = "firefox";
version = "56.0.2";
version = "57.0.2";
src = fetchurl {
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "35f81e8163a254b7e134fc073acbcff63aa1025b9c6392377650a8f2d0a5f0c77211adb0ae3d8ac85f036bb387246934b8847f14a03fceb7fcbc5b3cf94c9392";
sha512 = "e66402c182fae579dc645de1570a2eba4f95953f608de668da07a1ee4f371041cbdb3e01ce6e4708d8fa3b6b3ebe5b79e03e48ced3605f66cb09ac49abf3bbcd";
};

patches =
[ ./no-buildconfig.patch ]
++ lib.optional stdenv.isi686 (fetchpatch {
url = "https://hg.mozilla.org/mozilla-central/raw-rev/15517c5a5d37";
sha256 = "1ba487p3hk4w2w7qqfxgv1y57vp86b8g3xhav2j20qd3j3phbbn7";
});
[ ./no-buildconfig.patch ];

meta = {
description = "A web browser built from Firefox source tree";
Expand Down
40 changes: 40 additions & 0 deletions pkgs/development/compilers/rust/1.19.0-bin.nix
@@ -0,0 +1,40 @@
{ stdenv, fetchurl, makeWrapper, buildRustPackage, cacert, zlib, curl }:

let
platform =
if stdenv.system == "i686-linux"
then "i686-unknown-linux-gnu"
else if stdenv.system == "x86_64-linux"
then "x86_64-unknown-linux-gnu"
else if stdenv.system == "i686-darwin"
then "i686-apple-darwin"
else if stdenv.system == "x86_64-darwin"
then "x86_64-apple-darwin"
else throw "missing bootstrap url for platform ${stdenv.system}";

# fetch hashes by patching print-hashes.sh to not use the "$DATE" variable
# then running `print-hashes.sh 1.16.0`
bootstrapHash =
if stdenv.system == "i686-linux"
then "657b78f3c1a1b4412e12f7278e20cc318022fa276a58f0d38a0d15b515e39713"
else if stdenv.system == "x86_64-linux"
then "30ff67884464d32f6bbbde4387e7557db98868e87fb2afbb77c9b7716e3bff09"
else if stdenv.system == "i686-darwin"
then "bdfd2189245dc5764c9f26bdba1429c2bf9d57477d8e6e3f0ba42ea0dc63edeb"
else if stdenv.system == "x86_64-darwin"
then "5c668fb60a3ba3e97dc2cb8967fc4bb9422b629155284dcb89f94d116bb17820"
else throw "missing bootstrap hash for platform ${stdenv.system}";

src = fetchurl {
url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz";
sha256 = bootstrapHash;
};

# Note: the version MUST be one version prior to the version we're
# building
version = "1.19.0";
in import ./binaryBuild.nix
{ inherit stdenv fetchurl makeWrapper cacert zlib buildRustPackage curl;
inherit version src platform;
versionType = "binary";
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/nspr/default.nix
@@ -1,14 +1,14 @@
{ stdenv, fetchurl
, CoreServices ? null }:

let version = "4.16"; in
let version = "4.17"; in

stdenv.mkDerivation {
name = "nspr-${version}";

src = fetchurl {
url = "mirror://mozilla/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
sha256 = "1l9wlnb9y0bzicv448jjl9kssqn044dc2qrkwzp4ll35fvch4ccv";
sha256 = "158hdn285dsb5rys8wl1wi32dd1axwhqq0r8fwny4aj157m0l2jr";
};

outputs = [ "out" "dev" ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/libraries/nss/default.nix
Expand Up @@ -9,11 +9,11 @@ let

in stdenv.mkDerivation rec {
name = "nss-${version}";
version = "3.32.1";
version = "3.33";

src = fetchurl {
url = "mirror://mozilla/security/nss/releases/NSS_3_32_1_RTM/src/${name}.tar.gz";
sha256 = "0lj6c94102aa81bnjisnix09zfjly9aa1d6vrzxmcjmzynkrrrad";
url = "mirror://mozilla/security/nss/releases/NSS_3_33_RTM/src/${name}.tar.gz";
sha256 = "1r44qa4j7sri50mxxbnrpm6fxprwrhv76whi7bfq73j06syxmw4q";
};

buildInputs = [ perl zlib sqlite ];
Expand Down
8 changes: 8 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -6133,6 +6133,12 @@ with pkgs;
rustStable = callPackage ../development/compilers/rust {
inherit (llvmPackages_4) llvm;
};

rust119bin = lowPrio (callPackage ../development/compilers/rust/1.19.0-bin.nix {
buildRustPackage = callPackage ../build-support/rust {
rust = rust119bin;
};
});
rustBeta = lowPrio (recurseIntoAttrs (callPackage ../development/compilers/rust/beta.nix {}));

rustNightly = rustBeta;
Expand Down Expand Up @@ -14495,6 +14501,8 @@ with pkgs;
python = python2;
gnused = gnused_422;
icu = icu59;
cargo = rust119bin.cargo;
rustc = rust119bin.rustc;
};
});

Expand Down

0 comments on commit 53e6d67

Please sign in to comment.