From 23e38aecfb3631f2a03c30632e05dfb88d35a7cf Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 21 Oct 2024 12:13:58 +0100 Subject: [PATCH] factorio-space-age: init at 2.0.7 (cherry picked from commit 5579fe359c6969b6587d68a66f2c42dab46d5f20) --- pkgs/games/factorio/default.nix | 4 +++- pkgs/games/factorio/update.py | 1 + pkgs/games/factorio/versions.json | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/pkgs/games/factorio/default.nix b/pkgs/games/factorio/default.nix index d5190aa1d9458..d342f76a2d9c1 100644 --- a/pkgs/games/factorio/default.nix +++ b/pkgs/games/factorio/default.nix @@ -29,7 +29,8 @@ assert releaseType == "alpha" || releaseType == "headless" - || releaseType == "demo"; + || releaseType == "demo" + || releaseType == "expansion"; let @@ -272,6 +273,7 @@ let cp -a doc-html $out/share/factorio ''; }; + expansion = alpha; }; in diff --git a/pkgs/games/factorio/update.py b/pkgs/games/factorio/update.py index c234b36264e8f..6da1d9dfee7df 100755 --- a/pkgs/games/factorio/update.py +++ b/pkgs/games/factorio/update.py @@ -55,6 +55,7 @@ class ReleaseChannel: RELEASE_TYPES = [ ReleaseType("alpha", needs_auth=True), + ReleaseType("expansion", needs_auth=True), ReleaseType("demo"), ReleaseType("headless"), ] diff --git a/pkgs/games/factorio/versions.json b/pkgs/games/factorio/versions.json index d19aaf8bb5276..20516aae7748c 100644 --- a/pkgs/games/factorio/versions.json +++ b/pkgs/games/factorio/versions.json @@ -36,6 +36,24 @@ "version": "1.1.107" } }, + "expansion": { + "experimental": { + "name": "factorio_expansion_x64-2.0.7.tar.xz", + "needsAuth": true, + "sha256": "1zvk1skkm37kyikq4l1q285l8zhxc6lqvs1x2y2ccxwd4cdm6r96", + "tarDirectory": "x64", + "url": "https://factorio.com/get-download/2.0.7/expansion/linux64", + "version": "2.0.7" + }, + "stable": { + "name": "factorio_expansion_x64-2.0.7.tar.xz", + "needsAuth": true, + "sha256": "1zvk1skkm37kyikq4l1q285l8zhxc6lqvs1x2y2ccxwd4cdm6r96", + "tarDirectory": "x64", + "url": "https://factorio.com/get-download/2.0.7/expansion/linux64", + "version": "2.0.7" + } + }, "headless": { "experimental": { "name": "factorio_headless_x64-2.0.7.tar.xz", diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c0d2930d54dd2..90731b9eae6b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36637,6 +36637,10 @@ with pkgs; factorio-demo = factorio.override { releaseType = "demo"; }; + factorio-space-age = factorio.override { releaseType = "expansion"; }; + + factorio-space-age-experimental = factorio.override { releaseType = "expansion"; experimental = true; }; + factorio-mods = callPackage ../games/factorio/mods.nix { }; factorio-utils = callPackage ../games/factorio/utils.nix { };