From ff0e1b3d462c6741833a884dbd38bc6ea9a882b1 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 23 Apr 2025 00:42:15 +0100 Subject: [PATCH] endgame-singularity: 1.00 -> 1.00-unstable-2025-03-18 Latest release crashes in the middle of the game when base setup is attempted. THe upstream has the fix from last year at: https://github.com/singularity/singularity/commit/57013b621d641ae9b0b2554918807a88b7727b87 But needs a few backports to make it apply. Let's track `master` instead. --- pkgs/by-name/en/endgame-singularity/package.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/en/endgame-singularity/package.nix b/pkgs/by-name/en/endgame-singularity/package.nix index 38b8a4fcab45..6712437c60be 100644 --- a/pkgs/by-name/en/endgame-singularity/package.nix +++ b/pkgs/by-name/en/endgame-singularity/package.nix @@ -5,17 +5,18 @@ unzip, python3, enableDefaultMusicPack ? true, + unstableGitUpdater, }: let pname = "endgame-singularity"; - version = "1.00"; + version = "1.00-unstable-2025-03-18"; main_src = fetchFromGitHub { owner = "singularity"; repo = "singularity"; - rev = "v${version}"; - sha256 = "0ndrnxwii8lag6vrjpwpf5n36hhv223bb46d431l9gsigbizv0hl"; + rev = "8bbc2322ad1a0e83f78f5af731dfa97b6bd63f9c"; + hash = "sha256-HiFE746JtGjZJbiKhB3ubfb376tJmz78jUfdu3/RQic="; }; music_src = fetchurl { @@ -44,6 +45,14 @@ python3.pkgs.buildPythonApplication { # ↑ we cannot glob on [...]/music, it doesn't exist yet ''; + passthru = { + # for the updater + src = main_src; + updateScript = unstableGitUpdater { + tagPrefix = "v"; + }; + }; + meta = { homepage = "http://www.emhsoft.com/singularity/"; description = "Simulation game about strong AI";