2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, SDL
|
|
|
|
, SDL_mixer
|
|
|
|
, directoryListingUpdater
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchurl
|
|
|
|
, stdenv
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "lgames-ltris";
|
|
|
|
version = "1.2.8";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "mirror://sourceforge/lgames/ltris-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-2e5haaU2pqkBk82qiF/3HQgSBVPHP09UwW+TQqpGUqA=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
passthru.updateScript = directoryListingUpdater {
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit (finalAttrs) pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://lgames.sourceforge.io/LTris/";
|
|
|
|
extraRegex = "(?!.*-win(32|64)).*";
|
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://lgames.sourceforge.io/LTris/";
|
|
|
|
description = "Tetris clone from the LGames series";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
|
|
|
mainProgram = "ltris";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit (SDL.meta) platforms;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|