nixpkgs/pkgs/build-support/fetchurl/mirrors.nix
Eelco Dolstra 45a2c87402 * Support for mirror:// URLs a la Gentoo (NIXPKGS-70). Instead of
fetchurl {
      url = http://heanet.dl.sourceforge.net/sourceforge/zapping/zapping-0.9.6.tar.bz2;
      md5 = "8306775c6a11de4d72345b5eee970ea6";
    };

  you can write

    fetchurl {
      url = mirror://sourceforge/zapping/zapping-0.9.6.tar.bz2;
      md5 = "8306775c6a11de4d72345b5eee970ea6";
    };

  which causes fetchurl to try the SourceForge mirrors listed in the
  `sourceforge' attribute in build-support/fetchurl/mirrors.nix.
  (They're currently tried in sequence, and the lists of mirrors are
  not configurable yet.)

  The syntax for mirror URLs is mirror://site/path/to/file, where
  `site' is currently one of `sourceforge', `gnu' (mirrors of
  ftp://ftp.gnu.org/pub/gnu) and `kernel' (mirrors of
  http://www.all.kernel.org/pub/).

svn path=/nixpkgs/trunk/; revision=9197
2007-08-27 12:44:01 +00:00

36 lines
917 B
Nix

{
# Content-addressable Nix mirrors.
hashedMirrors = [
http://nix.cs.uu.nl/dist/tarballs
];
# Mirrors for mirror://site/filename URIs, where "site" is
# "sourceforge", "gnu", etc.
# SourceForge.
sourceforge = [
http://prdownloads.sourceforge.net/
http://heanet.dl.sourceforge.net/sourceforge/
http://surfnet.dl.sourceforge.net/sourceforge/
http://dfn.dl.sourceforge.net/sourceforge/
http://mesh.dl.sourceforge.net/sourceforge/
http://ovh.dl.sourceforge.net/sourceforge/
http://osdn.dl.sourceforge.net/sourceforge/
http://kent.dl.sourceforge.net/sourceforge/
];
# GNU.
gnu = [
ftp://ftp.nluug.nl/pub/gnu/
http://mirrors.kernel.org/gnu/
http://ftp.gnu.org/pub/gnu/
];
# kernel.org's /pub (/pub/{linux,software}) tree.
kernel = [
http://www.all.kernel.org/pub/
http://www.eu.kernel.org/pub/
http://www.de.kernel.org/pub/
];
}