about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-19 14:07:09 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-19 14:10:09 +0300
commit9525abdeec4129de158369d323c673fa19c5fa64 (patch)
treedb7dcca8ad99dbb537c513194d0e92559e5c742b /pkgs
parent14f1ff80ce42fcfb4ee8e85e7882b3fac8f97cde (diff)
downloadnixlib-9525abdeec4129de158369d323c673fa19c5fa64.tar
nixlib-9525abdeec4129de158369d323c673fa19c5fa64.tar.gz
nixlib-9525abdeec4129de158369d323c673fa19c5fa64.tar.bz2
nixlib-9525abdeec4129de158369d323c673fa19c5fa64.tar.lz
nixlib-9525abdeec4129de158369d323c673fa19c5fa64.tar.xz
nixlib-9525abdeec4129de158369d323c673fa19c5fa64.tar.zst
nixlib-9525abdeec4129de158369d323c673fa19c5fa64.zip
steamPackages.runtime: use mirrors, add my mirror
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/build-support/fetchurl/mirrors.nix6
-rwxr-xr-xpkgs/games/steam/update-runtime.py4
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchurl/mirrors.nix b/pkgs/build-support/fetchurl/mirrors.nix
index 767444e76981..c5107781c333 100644
--- a/pkgs/build-support/fetchurl/mirrors.nix
+++ b/pkgs/build-support/fetchurl/mirrors.nix
@@ -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/
+  ];
 }
diff --git a/pkgs/games/steam/update-runtime.py b/pkgs/games/steam/update-runtime.py
index 324429708490..0292e725cea1 100755
--- a/pkgs/games/steam/update-runtime.py
+++ b/pkgs/games/steam/update-runtime.py
@@ -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")