From 71a443c1b24429f32e3d3140949aa576a6a5269d Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Mon, 3 Nov 2014 18:21:37 +0100 Subject: [PATCH] Add mirrors for sage --- .../science/math/sage/default.nix | 2 +- pkgs/build-support/fetchurl/mirrors.nix | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/sage/default.nix b/pkgs/applications/science/math/sage/default.nix index 70a833be7d89..a27a93dd2c64 100644 --- a/pkgs/applications/science/math/sage/default.nix +++ b/pkgs/applications/science/math/sage/default.nix @@ -6,7 +6,7 @@ stdenv.mkDerivation rec { name = "sage-6.1.1"; src = fetchurl { - url = "http://www.sagemath.org/src-old/sage-6.1.1.tar.gz"; + url = "mirror://sagemath/${name}.tar.gz"; sha256 = "0kbzs0l9q7y34jv3f8rd1c2mrjsjkdgaw6mfdwjlpg9g4gghmq5y"; }; diff --git a/pkgs/build-support/fetchurl/mirrors.nix b/pkgs/build-support/fetchurl/mirrors.nix index 991b32352ffe..b54088d047d3 100644 --- a/pkgs/build-support/fetchurl/mirrors.nix +++ b/pkgs/build-support/fetchurl/mirrors.nix @@ -393,4 +393,37 @@ rec { http://cflags.cc/roy/ ]; + # Sage mirrors (http://www.sagemath.org/mirrors.html) + sagemath = [ + http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/ + http://echidna.maths.usyd.edu.au/sage/src/ + http://ftp.iitm.ac.in/sage/src/ + http://ftp.kaist.ac.kr/sage/src/ + http://ftp.riken.jp/sagemath/src/ + http://ftp.tsukuba.wide.ad.jp/software/sage/src/ + http://jambu.spms.ntu.edu.sg/sage/src/ + http://linorg.usp.br/sage/src/ + http://mirror.aarnet.edu.au/pub/sage/src/ + http://mirror.clibre.uqam.ca/sage/src/ + http://mirror.hust.edu.cn/sagemath/src/ + http://mirror.switch.ch/mirror/sagemath/src/ + http://mirror.yandex.ru/mirrors/sage.math.washington.edu/src/ + http://mirrors.fe.up.pt/pub/sage/src/ + http://mirrors.hustunique.com/sagemath/src/ + http://mirrors.ustc.edu.cn/sagemath/src/ + http://mirrors.xmission.com/sage/src/ + http://sage.asis.io/src/ + http://sage.mirror.garr.it/mirrors/sage/src/ + http://sage.yasar.edu.tr/src/ + http://sagemath.c3sl.ufpr.br/src/ + http://sagemath.polytechnic.edu.na/src/ + http://sunsite.rediris.es/mirror/sagemath/src/ + http://www-ftp.lip6.fr/pub/math/sagemath/src/ + http://www.mirrorservice.org/sites/www.sagemath.org/src/ + + # Old versions + http://www.cecm.sfu.ca/sage/src/ + http://sagemath.org/src-old/ + ]; + }