git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #33957 from seanparsons/add-factorio-experimental-support

Added support for Factorio's experimental branch.

commit1628e400694afea3ad51e64a4bcf1cbc75cb6b0e authorJoachim F <joachifm@users.noreply.github.com> dateFri 16 Feb 2018, 15:14 (9 years ago) parentf8c48907229066
2 files changed+29−7
pkgs/games/factorio/default.nix+27−7 pkgs/top-level/all-packages.nix+2
pkgs/games/factorio/default.nix+27−7
@@ -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"
pkgs/top-level/all-packages.nix+2
@@ -18444,6 +18444,8 @@ with pkgs;
1844418444
1844518445 factorio = callPackage ../games/factorio { releaseType = "alpha"; };
1844618446
18447+ factorio-experimental = callPackage ../games/factorio { releaseType = "alpha"; experimental = true; };
18448+
1844718449 factorio-headless = callPackage ../games/factorio { releaseType = "headless"; };
1844818450
1844918451 factorio-demo = callPackage ../games/factorio { releaseType = "demo"; };