tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
steamPackages.runtime: use mirrors, add my mirror
Nikolay Amiantov
10 years ago
9525abde
14f1ff80
+8
-2
2 changed files
expand all
collapse all
unified
split
pkgs
build-support
fetchurl
mirrors.nix
games
steam
update-runtime.py
+6
pkgs/build-support/fetchurl/mirrors.nix
···
333
333
ftp://ftp.halifax.rwth-aachen.de/pub/OpenBSD/
334
334
ftp://mirror.switch.ch/pub/OpenBSD/
335
335
];
336
336
+
337
337
+
# Steam Runtime mirrors
338
338
+
steamrt = [
339
339
+
http://repo.steampowered.com/steamrt/
340
340
+
https://abbradar.net/steamrt/
341
341
+
];
336
342
}
+2
-2
pkgs/games/steam/update-runtime.py
···
40
40
out.write(" rec {\n")
41
41
out.write(" name = \"%s\";\n" % file_name)
42
42
out.write(" md5 = \"%s\";\n" % md5.strip())
43
43
+
out.write(" url = \"%s\";\n" % file_url.replace(REPO, "mirror://steamrt", 1))
43
44
out.write(" source = fetchurl {\n")
44
44
-
out.write(" url = \"%s\";\n" % file_url)
45
45
-
out.write(" inherit md5;\n")
45
45
+
out.write(" inherit url md5;\n")
46
46
out.write(" name = \"%s\";\n" % file_shortname)
47
47
out.write(" };\n")
48
48
out.write(" }\n")