mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 09:27:31 +00:00
ltris: add updateScript
This commit is contained in:
parent
400ec42904
commit
082d60f9fc
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user