about summary refs log tree commit diff
path: root/pkgs/games/lgames
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2022-12-09 18:44:54 +0100
committerFrancesco Gazzetta <fgaz@fgaz.me>2022-12-10 17:02:38 +0100
commit400ec42904919bfcd19fe86d8f27f99044ec85d1 (patch)
treed3cd912a0330310ecbcdd86b9217ad191049157b /pkgs/games/lgames
parent19e4b53b090c7aa150af40232b2c75c80d53a017 (diff)
lbreakouthd: add updateScript
Diffstat (limited to 'pkgs/games/lgames')
-rw-r--r--pkgs/games/lgames/lbreakouthd/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/games/lgames/lbreakouthd/default.nix b/pkgs/games/lgames/lbreakouthd/default.nix
index bfe8eecc95b86..e83e5da6c7027 100644
--- a/pkgs/games/lgames/lbreakouthd/default.nix
+++ b/pkgs/games/lgames/lbreakouthd/default.nix
@@ -5,6 +5,7 @@
 , SDL2_image
 , SDL2_mixer
 , SDL2_ttf
+, directoryListingUpdater
 }:
 
 stdenv.mkDerivation rec {
@@ -25,6 +26,12 @@ stdenv.mkDerivation rec {
 
   hardeningDisable = [ "format" ];
 
+  passthru.updateScript = directoryListingUpdater {
+    inherit pname version;
+    url = "https://lgames.sourceforge.io/LBreakoutHD/";
+    extraRegex = "(?!.*-win(32|64)).*";
+  };
+
   meta = with lib; {
     broken = stdenv.isDarwin;
     homepage = "https://lgames.sourceforge.io/LBreakoutHD/";