@@ -4,6 +4,7 @@
44, releaseType
55, mods ? []
66, username ? "" , password ? ""
7+, experimental ? false
78}:
89
910assert releaseType == "alpha"
@@ -14,19 +15,38 @@ let
1415
1516 # NB If you nix-prefetch-url any of these, be sure to add a --name arg,
1617 # where the ultimate "_" (before the version) is changed to a "-".
18+ branch = if experimental then "experimental" else "stable";
1719 binDists = {
1820 x86_64-linux = let bdist = bdistForArch { inUrl = "linux64"; inTar = "x64"; }; in {
19− alpha = bdist { sha256 = "1i25q8x80qdpmf00lvml67gyklrfvmr4gfyakrx954bq8giiy4ll"; fetcher = authenticatedFetch; };
20− headless = bdist { sha256 = "0v5sypz1q6x6hi6k5cyi06f9ld0cky80l0z64psd3v2ax9hyyh8h"; };
21− demo = bdist { sha256 = "0aca8gks7wl7yi821bcca16c94zcc41agin5j0vfz500i0sngzzw"; version = "0.15.36"; };
21+ alpha = {
22+ stable = bdist { sha256 = "1i25q8x80qdpmf00lvml67gyklrfvmr4gfyakrx954bq8giiy4ll"; fetcher = authenticatedFetch; };
23+ experimental = bdist { sha256 = "0s7cn5xhzwn793bmvlhlmibhbxdpfmpnpn33k5a4hdprc5gc27rg"; version = "0.16.24"; fetcher = authenticatedFetch; };
24+ };
25+ headless = {
26+ stable = bdist { sha256 = "0v5sypz1q6x6hi6k5cyi06f9ld0cky80l0z64psd3v2ax9hyyh8h"; };
27+ experimental = bdist { sha256 = "1ff4yjybiqr5kw583hmxkbrbxa3haj4bkjj8sx811c3s269gspi2"; version = "0.16.24"; };
28+ };
29+ demo = {
30+ stable = bdist { sha256 = "0aca8gks7wl7yi821bcca16c94zcc41agin5j0vfz500i0sngzzw"; version = "0.15.36"; };
31+ experimental = bdist { };
32+ };
2233 };
2334 i686-linux = let bdist = bdistForArch { inUrl = "linux32"; inTar = "i386"; }; in {
24− alpha = bdist { sha256 = "0nnfkxxqnywx1z05xnndgh71gp4izmwdk026nnjih74m2k5j086l"; version = "0.14.23"; nameMut = asGz; };
25− headless = bdist { };
26− demo = bdist { };
35+ alpha = {
36+ stable = bdist { sha256 = "0nnfkxxqnywx1z05xnndgh71gp4izmwdk026nnjih74m2k5j086l"; version = "0.14.23"; nameMut = asGz; };
37+ experimental = bdist { };
38+ };
39+ headless = {
40+ stable = bdist { };
41+ experimental = bdist { };
42+ };
43+ demo = {
44+ stable = bdist { };
45+ experimental = bdist { };
46+ };
2747 };
2848 };
29− actual = binDists.${stdenv.system}.${releaseType} or (throw "Factorio: unsupported platform");
49+ actual = binDists.${stdenv.system}.${releaseType}.${branch} or (throw "Factorio: unsupported platform");
3050
3151 bdistForArch = arch: { sha256 ? null
3252 , version ? "0.15.40"