steam: runtime-generated.nix md5->sha256

This commit is contained in:
Chris Martin 2016-09-05 19:48:13 -04:00 committed by Nikolay Amiantov
parent d2151a50be
commit cac553e8e0
2 changed files with 779 additions and 779 deletions

File diff suppressed because it is too large Load diff

View file

@ -36,13 +36,13 @@ def parse_args():
def download_file(file_base, file_name, file_url):
file_shortname = file_base + ".deb"
md5 = subprocess.check_output(["nix-prefetch-url", "--type", "md5", "--name", file_shortname, file_url])
sha256 = subprocess.check_output(["nix-prefetch-url", "--type", "sha256", "--name", file_shortname, file_url])
out.write(" rec {\n")
out.write(" name = \"%s\";\n" % file_name)
out.write(" md5 = \"%s\";\n" % md5.strip())
out.write(" sha256 = \"%s\";\n" % sha256.strip())
out.write(" url = \"%s\";\n" % file_url.replace(REPO, "mirror://steamrt", 1))
out.write(" source = fetchurl {\n")
out.write(" inherit url md5;\n")
out.write(" inherit url sha256;\n")
out.write(" name = \"%s\";\n" % file_shortname)
out.write(" };\n")
out.write(" }\n")