Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
,token?""# get/reset token at https://factorio.com/profile
,experimental?false# true means to always use the latest branch
,...
{
lib,
alsa-lib,
factorio-utils,
fetchurl,
libGL,
libICE,
libSM,
libX11,
libXcursor,
libXext,
libXi,
libXinerama,
libXrandr,
libpulseaudio,
libxkbcommon,
makeDesktopItem,
makeWrapper,
releaseType,
stdenv,
wayland,
mods-dat?null,
versionsJson?./versions.json,
username?"",
token?"",# get/reset token at https://factorio.com/profile
experimental?false,# true means to always use the latest branch
...
}@args:
assertreleaseType=="alpha"
assert
releaseType=="alpha"
||releaseType=="headless"
||releaseType=="demo"
||releaseType=="expansion";
@@ -86,21 +88,32 @@ let
versions=importJSONversionsJson;
binDists=makeBinDistsversions;
actual=binDists.${stdenv.hostPlatform.system}.${releaseType}.${branch}or(throw"Factorio ${releaseType}-${branch} binaries for ${stdenv.hostPlatform.system} are not available for download.");