git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitbacf5619e253214212dfc004eb18a6f0be07d367 authorJosef Kemetmüller <josef.kemetmueller@gmail.com> dateTue 20 Aug 2019, 22:40 (7 years ago) parent129cb7e
2 files changed+17−9
pkgs/build-support/fetchurl/mirrors.nix+14 pkgs/build-support/vm/default.nix+3−9
pkgs/build-support/fetchurl/mirrors.nix+14
@@ -169,6 +169,20 @@ rec {
169169 http://backpan.perl.org/ # for old releases
170170 ];
171171
172+ # CentOS.
173+ centos = [
174+ http://mirror.centos.org/centos/
175+ # For old releases
176+ http://vault.centos.org/
177+ https://archive.kernel.org/centos-vault/
178+ http://ftp.jaist.ac.jp/pub/Linux/CentOS-vault/
179+ http://mirrors.aliyun.com/centos-vault/
180+ https://mirror.chpc.utah.edu/pub/vault.centos.org/
181+ https://mirror.its.sfu.ca/mirror/CentOS-vault/
182+ https://mirror.math.princeton.edu/pub/centos-vault/
183+ https://mirrors.tripadvisor.com/centos-vault/
184+ ];
185+
172186 # Debian.
173187 debian = [
174188 http://httpredir.debian.org/debian/
pkgs/build-support/vm/default.nix+3−9
@@ -774,9 +774,7 @@ rec {
774774 in rec {
775775 name = "centos-${version}-i386";
776776 fullName = "CentOS ${version} (i386)";
777− # N.B. Switch to vault.centos.org when the next release comes out
778− # urlPrefix = "http://vault.centos.org/${version}/os/i386";
779− urlPrefix = "http://mirror.centos.org/centos-6/${version}/os/i386";
777+ urlPrefix = "mirror://centos/${version}/os/i386";
780778 packagesList = fetchurl rec {
781779 url = "${urlPrefix}/repodata/${sha256}-primary.xml.gz";
782780 sha256 = "b826a45082ef68340325c0855f3d2e5d5a4d0f77d28ba3b871791d6f14a97aeb";
@@ -790,9 +788,7 @@ rec {
790788 in rec {
791789 name = "centos-${version}-x86_64";
792790 fullName = "CentOS ${version} (x86_64)";
793− # N.B. Switch to vault.centos.org when the next release comes out
794− # urlPrefix = "http://vault.centos.org/${version}/os/x86_64";
795− urlPrefix = "http://mirror.centos.org/centos-6/${version}/os/x86_64";
791+ urlPrefix = "mirror://centos/${version}/os/x86_64";
796792 packagesList = fetchurl rec {
797793 url = "${urlPrefix}/repodata/${sha256}-primary.xml.gz";
798794 sha256 = "ed2b2d4ac98d774d4cd3e91467e1532f7e8b0275cfc91a0d214b532dcaf1e979";
@@ -807,9 +803,7 @@ rec {
807803 in rec {
808804 name = "centos-${version}-x86_64";
809805 fullName = "CentOS ${version} (x86_64)";
810− # N.B. Switch to vault.centos.org when the next release comes out
811− # urlPrefix = "http://vault.centos.org/${version}/os/x86_64";
812− urlPrefix = "http://mirror.centos.org/centos-7/${version}/os/x86_64";
806+ urlPrefix = "mirror://centos/${version}/os/x86_64";
813807 packagesList = fetchurl rec {
814808 url = "${urlPrefix}/repodata/${sha256}-primary.xml.gz";
815809 sha256 = "b686d3a0f337323e656d9387b9a76ce6808b26255fc3a138b1a87d3b1cb95ed5";