mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
steamPackages.runtime: use mirrors, add my mirror
This commit is contained in:
parent
14f1ff80ce
commit
9525abdeec
2 changed files with 8 additions and 2 deletions
|
@ -333,4 +333,10 @@ rec {
|
|||
ftp://ftp.halifax.rwth-aachen.de/pub/OpenBSD/
|
||||
ftp://mirror.switch.ch/pub/OpenBSD/
|
||||
];
|
||||
|
||||
# Steam Runtime mirrors
|
||||
steamrt = [
|
||||
http://repo.steampowered.com/steamrt/
|
||||
https://abbradar.net/steamrt/
|
||||
];
|
||||
}
|
||||
|
|
|
@ -40,9 +40,9 @@ def download_file(file_base, file_name, file_url):
|
|||
out.write(" rec {\n")
|
||||
out.write(" name = \"%s\";\n" % file_name)
|
||||
out.write(" md5 = \"%s\";\n" % md5.strip())
|
||||
out.write(" url = \"%s\";\n" % file_url.replace(REPO, "mirror://steamrt", 1))
|
||||
out.write(" source = fetchurl {\n")
|
||||
out.write(" url = \"%s\";\n" % file_url)
|
||||
out.write(" inherit md5;\n")
|
||||
out.write(" inherit url md5;\n")
|
||||
out.write(" name = \"%s\";\n" % file_shortname)
|
||||
out.write(" };\n")
|
||||
out.write(" }\n")
|
||||
|
|
Loading…
Reference in a new issue