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
ftp://ftp.halifax.rwth-aachen.de/pub/OpenBSD/
334
ftp://mirror.switch.ch/pub/OpenBSD/
335
];
0
0
0
0
0
0
336
}
···
333
ftp://ftp.halifax.rwth-aachen.de/pub/OpenBSD/
334
ftp://mirror.switch.ch/pub/OpenBSD/
335
];
336
+
337
+
# Steam Runtime mirrors
338
+
steamrt = [
339
+
http://repo.steampowered.com/steamrt/
340
+
https://abbradar.net/steamrt/
341
+
];
342
}
+2
-2
pkgs/games/steam/update-runtime.py
···
40
out.write(" rec {\n")
41
out.write(" name = \"%s\";\n" % file_name)
42
out.write(" md5 = \"%s\";\n" % md5.strip())
0
43
out.write(" source = fetchurl {\n")
44
-
out.write(" url = \"%s\";\n" % file_url)
45
-
out.write(" inherit md5;\n")
46
out.write(" name = \"%s\";\n" % file_shortname)
47
out.write(" };\n")
48
out.write(" }\n")
···
40
out.write(" rec {\n")
41
out.write(" name = \"%s\";\n" % file_name)
42
out.write(" md5 = \"%s\";\n" % md5.strip())
43
+
out.write(" url = \"%s\";\n" % file_url.replace(REPO, "mirror://steamrt", 1))
44
out.write(" source = fetchurl {\n")
45
+
out.write(" inherit url md5;\n")
0
46
out.write(" name = \"%s\";\n" % file_shortname)
47
out.write(" };\n")
48
out.write(" }\n")