about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-12-31 22:35:32 +0000
committerSergei Trofimovich <slyich@gmail.com>2021-12-31 22:36:57 +0000
commit5997908de59e478a4c707f59ef1de290f2f913cf (patch)
tree53927c4f3f01ceba46cd8020b5d9cac97b100b33 /pkgs/games
parent796af3ddba8c3b045b79332a39eae92f24efc277 (diff)
fheroes2: add trivial updater script
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/fheroes2/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/games/fheroes2/default.nix b/pkgs/games/fheroes2/default.nix
index bf40cd566cc28..287093354fc7a 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";