Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32956 from pbogdan/update-firefox-17.09
[WIP/RFC] update firefox on 17.09
- Loading branch information
Showing
6 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters