ltris: add updateScript

This commit is contained in:
Francesco Gazzetta 2022-12-09 18:52:35 +01:00
parent 400ec42904
commit 082d60f9fc

View file

@ -1,4 +1,10 @@
{ lib, stdenv, fetchurl, SDL, SDL_mixer }:
{ lib
, stdenv
, fetchurl
, SDL
, SDL_mixer
, directoryListingUpdater
}:
stdenv.mkDerivation rec {
pname = "ltris";
@ -16,6 +22,12 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
passthru.updateScript = directoryListingUpdater {
inherit pname version;
url = "https://lgames.sourceforge.io/LTris/";
extraRegex = "(?!.*-win(32|64)).*";
};
meta = with lib; {
homepage = "https://lgames.sourceforge.io/LTris/";
description = "Tetris clone from the LGames series";