Add mirror://mozilla scheme
This commit is contained in:
parent
7ce5d43c63
commit
cb37ab146b
@ -24,7 +24,7 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec {
|
||||
src = fetchurl {
|
||||
url =
|
||||
let ext = if lib.versionAtLeast version "41.0" then "xz" else "bz2";
|
||||
in "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${version}/source/firefox-${version}.source.tar.${ext}";
|
||||
in "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.${ext}";
|
||||
inherit sha512;
|
||||
};
|
||||
|
||||
|
@ -20,9 +20,8 @@ stdenv.mkDerivation rec {
|
||||
name = "thunderbird-${verName}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://archive.mozilla.org/pub/thunderbird/releases/"
|
||||
+ "${verName}/source/thunderbird-${verName}.source.tar.xz";
|
||||
sha256 = "0rynfyxgpvfla17zniaq84slc02kg848qawkjmdbnv74y6bkhs8m";
|
||||
url = "mirror://mozilla/thunderbird/releases/${verName}/source/thunderbird-${verName}.source.tar.xz";
|
||||
sha256 = "1wbkj8a0p62mcbxlq8yyzrx51xi65qm8f2ccqiv5pb6qd51b5d0v";
|
||||
};
|
||||
|
||||
buildInputs = # from firefox30Pkgs.xulrunner, without gstreamer and libvpx
|
||||
|
@ -345,4 +345,11 @@ rec {
|
||||
pypi = [
|
||||
https://pypi.io/packages/source/
|
||||
];
|
||||
|
||||
# Mozilla projects.
|
||||
mozilla = [
|
||||
http://download.cdn.mozilla.net/pub/mozilla.org/
|
||||
https://archive.mozilla.org/pub/
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -3,9 +3,9 @@
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.8.0-rc1";
|
||||
name = "spidermonkey-${version}";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.mozilla.org/pub/mozilla.org/js/js-${version}.tar.gz";
|
||||
url = "mirror://mozilla/js/js-${version}.tar.gz";
|
||||
sha256 = "374398699ac3fd802d98d642486cf6b0edc082a119c9c9c499945a0bc73e3413";
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
||||
name = "spidermonkey-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs${version}.tar.gz";
|
||||
url = "mirror://mozilla/js/mozjs${version}.tar.gz";
|
||||
sha256 = "1fig2wf4f10v43mqx67y68z6h77sy900d1w0pz9qarrqx57rc7ij";
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
||||
name = "spidermonkey-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.mozilla.org/pub/mozilla.org/js/js${version}.tar.gz";
|
||||
url = "mirror://mozilla/js/js${version}.tar.gz";
|
||||
sha256 = "5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687";
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
||||
name = "spidermonkey-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-${version}.tar.bz2";
|
||||
url = "mirror://mozilla/js/mozjs-${version}.tar.bz2";
|
||||
sha256 = "1n1phk8r3l8icqrrap4czplnylawa0ddc2cc4cgdz46x3lrkybz6";
|
||||
};
|
||||
|
||||
|
@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
|
||||
name = "spidermonkey-1.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://ftp.mozilla.org/pub/js/js-1.7.0.tar.gz;
|
||||
url = mirror://mozilla/js/js-1.7.0.tar.gz;
|
||||
sha256 = "12v6v2ccw1y6ng3kny3xw0lfs58d1klylqq707k0x04m707kydj4";
|
||||
};
|
||||
|
||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
name = "rhino-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ftp.mozilla.org/pub/js/rhino1_7R2.zip";
|
||||
url = "mirror://mozilla/js/rhino1_7R2.zip";
|
||||
sha256 = "1p32hkghi6bkc3cf2dcqyaw5cjj7403mykcp0fy8f5bsnv0pszv7";
|
||||
};
|
||||
|
||||
|
@ -6,7 +6,7 @@ stdenv.mkDerivation {
|
||||
name = "nspr-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
|
||||
url = "mirror://mozilla/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
|
||||
sha256 = "1pk98bmc5xzbl62q5wf2d6mryf0v95z6rsmxz27nclwiaqg0mcg0";
|
||||
};
|
||||
|
||||
|
@ -12,7 +12,7 @@ in stdenv.mkDerivation rec {
|
||||
version = "3.23";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_23_RTM/src/${name}.tar.gz";
|
||||
url = "mirror://mozilla/security/nss/releases/NSS_3_23_RTM/src/${name}.tar.gz";
|
||||
sha256 = "1kqidv91icq96m9m8zx50n7px08km2l88458rkgyjwcn3kiq7cwl";
|
||||
};
|
||||
|
||||
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
||||
version = "4.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ftp.mozilla.org/pub/directory/svrcore/releases/${version}/src/${name}.tar.bz2";
|
||||
url = "mirror://mozilla/directory/svrcore/releases/${version}/src/${name}.tar.bz2";
|
||||
sha256 = "0n3alg6bxml8952fb6h0bi0l29farvq21q6k20gy2ba90m3znwj7";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user