factorio: automate updating server

This commit is contained in:
Leonardo Eugênio 2024-10-31 19:59:35 -03:00
parent 4e1ca64d0e
commit 7ccbca83bc
4 changed files with 28 additions and 8 deletions

View file

@ -0,0 +1,10 @@
{ factorio-headless, pkgs }:
factorio-headless.overrideAttrs (_: rec {
version = "2.0.13";
src = pkgs.fetchurl {
name = "factorio_headless_x64-${version}.tar.xz";
url = "https://www.factorio.com/get-download/${version}/headless/linux64";
hash = "sha256-J7NpAaOeWTrfKEGMAoYULGx6n4PRVpY8c2m9QFolx9E=";
};
})