From 5997908de59e478a4c707f59ef1de290f2f913cf Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 31 Dec 2021 22:35:32 +0000 Subject: [PATCH] fheroes2: add trivial updater script --- pkgs/games/fheroes2/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/games/fheroes2/default.nix b/pkgs/games/fheroes2/default.nix index bf40cd566cc..287093354fc 100644 --- a/pkgs/games/fheroes2/default.nix +++ b/pkgs/games/fheroes2/default.nix @@ -1,5 +1,8 @@ { stdenv, lib, fetchFromGitHub , gettext, libpng, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, zlib + +# updater only +, nix-update-script }: stdenv.mkDerivation rec { @@ -29,6 +32,12 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru = { + updateScript = nix-update-script { + attrPath = pname; + }; + }; + meta = with lib; { homepage = "https://github.com/ihhub/fheroes2"; description = "Free implementation of Heroes of Might and Magic II game engine";