forked from mirrors/nixpkgs
mirrors: Add centos mirror (#66537)
This should remove the need to rename links from mirror.centos.org to vault.centos.org as the removed comment mentions.
This commit is contained in:
parent
129cb7e32e
commit
bacf5619e2
|
@ -169,6 +169,20 @@ rec {
|
|||
http://backpan.perl.org/ # for old releases
|
||||
];
|
||||
|
||||
# CentOS.
|
||||
centos = [
|
||||
http://mirror.centos.org/centos/
|
||||
# For old releases
|
||||
http://vault.centos.org/
|
||||
https://archive.kernel.org/centos-vault/
|
||||
http://ftp.jaist.ac.jp/pub/Linux/CentOS-vault/
|
||||
http://mirrors.aliyun.com/centos-vault/
|
||||
https://mirror.chpc.utah.edu/pub/vault.centos.org/
|
||||
https://mirror.its.sfu.ca/mirror/CentOS-vault/
|
||||
https://mirror.math.princeton.edu/pub/centos-vault/
|
||||
https://mirrors.tripadvisor.com/centos-vault/
|
||||
];
|
||||
|
||||
# Debian.
|
||||
debian = [
|
||||
http://httpredir.debian.org/debian/
|
||||
|
|
|
@ -774,9 +774,7 @@ rec {
|
|||
in rec {
|
||||
name = "centos-${version}-i386";
|
||||
fullName = "CentOS ${version} (i386)";
|
||||
# N.B. Switch to vault.centos.org when the next release comes out
|
||||
# urlPrefix = "http://vault.centos.org/${version}/os/i386";
|
||||
urlPrefix = "http://mirror.centos.org/centos-6/${version}/os/i386";
|
||||
urlPrefix = "mirror://centos/${version}/os/i386";
|
||||
packagesList = fetchurl rec {
|
||||
url = "${urlPrefix}/repodata/${sha256}-primary.xml.gz";
|
||||
sha256 = "b826a45082ef68340325c0855f3d2e5d5a4d0f77d28ba3b871791d6f14a97aeb";
|
||||
|
@ -790,9 +788,7 @@ rec {
|
|||
in rec {
|
||||
name = "centos-${version}-x86_64";
|
||||
fullName = "CentOS ${version} (x86_64)";
|
||||
# N.B. Switch to vault.centos.org when the next release comes out
|
||||
# urlPrefix = "http://vault.centos.org/${version}/os/x86_64";
|
||||
urlPrefix = "http://mirror.centos.org/centos-6/${version}/os/x86_64";
|
||||
urlPrefix = "mirror://centos/${version}/os/x86_64";
|
||||
packagesList = fetchurl rec {
|
||||
url = "${urlPrefix}/repodata/${sha256}-primary.xml.gz";
|
||||
sha256 = "ed2b2d4ac98d774d4cd3e91467e1532f7e8b0275cfc91a0d214b532dcaf1e979";
|
||||
|
@ -807,9 +803,7 @@ rec {
|
|||
in rec {
|
||||
name = "centos-${version}-x86_64";
|
||||
fullName = "CentOS ${version} (x86_64)";
|
||||
# N.B. Switch to vault.centos.org when the next release comes out
|
||||
# urlPrefix = "http://vault.centos.org/${version}/os/x86_64";
|
||||
urlPrefix = "http://mirror.centos.org/centos-7/${version}/os/x86_64";
|
||||
urlPrefix = "mirror://centos/${version}/os/x86_64";
|
||||
packagesList = fetchurl rec {
|
||||
url = "${urlPrefix}/repodata/${sha256}-primary.xml.gz";
|
||||
sha256 = "b686d3a0f337323e656d9387b9a76ce6808b26255fc3a138b1a87d3b1cb95ed5";
|
||||
|
|
Loading…
Reference in a new issue