From 8742e4d1094ab1f80edbd68175713840436af190 Mon Sep 17 00:00:00 2001 From: emanuel <134736553+EmanuelM153@users.noreply.github.com> Date: Sat, 15 Aug 2026 11:27:02 -0500 Subject: [PATCH] open-adventure: 1.20 -> 1.22 https://gitlab.com/esr/open-adventure/-/raw/master/NEWS.adoc Nix changes - Added automatic package updates with nix-update-script - Moved pyyaml from buildInputs to nativeBuildInputs --- pkgs/by-name/op/open-adventure/package.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/op/open-adventure/package.nix b/pkgs/by-name/op/open-adventure/package.nix index 76b23b9ac12e..2f35c22f2d57 100644 --- a/pkgs/by-name/op/open-adventure/package.nix +++ b/pkgs/by-name/op/open-adventure/package.nix @@ -8,26 +8,27 @@ cppcheck, coreutils, asciidoctor, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "open-adventure"; - version = "1.20"; + version = "1.22"; src = fetchFromGitLab { owner = "esr"; repo = "open-adventure"; tag = finalAttrs.version; - hash = "sha256-xbsMz99CNLhpM6BSJVcRzxPB6tUYfPy/3Z+8BKt8b1E="; + hash = "sha256-mms4mSnJnXirnzw2UtIsnqejS2iyoNGQ5k1Ghvn2Ajc="; }; nativeBuildInputs = [ python3Packages.python + python3Packages.pyyaml pkg-config asciidoctor ]; buildInputs = [ - python3Packages.pyyaml libedit ]; @@ -40,10 +41,6 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' patchShebangs --build make_dungeon.py - - # https://gitlab.com/esr/open-adventure/-/issues/70 - substituteInPlace Makefile --replace-fail "--template " "--template=" - substituteInPlace tests/tapview --replace-fail "/bin/echo" ${lib.getExe' coreutils "echo"} ''; @@ -63,6 +60,8 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Forward-port of the Crowther/Woods Adventure 2.5 game from 1995"; longDescription = ''