2022-12-09 17:52:35 +00:00
|
|
|
{ lib
|
|
|
|
, SDL
|
|
|
|
, SDL_mixer
|
|
|
|
, directoryListingUpdater
|
2024-02-25 02:46:41 +00:00
|
|
|
, fetchurl
|
|
|
|
, stdenv
|
2022-12-09 17:52:35 +00:00
|
|
|
}:
|
2017-06-16 14:32:30 +00:00
|
|
|
|
2024-02-25 02:46:41 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "lgames-ltris";
|
2024-02-25 03:30:59 +00:00
|
|
|
version = "1.2.8";
|
2017-06-16 14:32:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-02-25 02:46:41 +00:00
|
|
|
url = "mirror://sourceforge/lgames/ltris-${finalAttrs.version}.tar.gz";
|
2024-02-25 03:30:59 +00:00
|
|
|
hash = "sha256-2e5haaU2pqkBk82qiF/3HQgSBVPHP09UwW+TQqpGUqA=";
|
2017-06-16 14:32:30 +00:00
|
|
|
};
|
|
|
|
|
2022-04-18 03:29:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2017-06-16 14:32:30 +00:00
|
|
|
|
2022-12-09 17:52:35 +00:00
|
|
|
passthru.updateScript = directoryListingUpdater {
|
2024-02-25 02:46:41 +00:00
|
|
|
inherit (finalAttrs) pname version;
|
2022-12-09 17:52:35 +00:00
|
|
|
url = "https://lgames.sourceforge.io/LTris/";
|
|
|
|
extraRegex = "(?!.*-win(32|64)).*";
|
|
|
|
};
|
|
|
|
|
2024-02-25 02:46:41 +00:00
|
|
|
meta = {
|
2022-04-18 03:29:00 +00:00
|
|
|
homepage = "https://lgames.sourceforge.io/LTris/";
|
2017-06-16 14:32:30 +00:00
|
|
|
description = "Tetris clone from the LGames series";
|
2024-02-25 02:46:41 +00:00
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
|
|
|
mainProgram = "ltris";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2022-04-18 03:29:00 +00:00
|
|
|
inherit (SDL.meta) platforms;
|
2023-08-03 20:39:54 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2017-06-16 14:32:30 +00:00
|
|
|
};
|
2024-02-25 02:46:41 +00:00
|
|
|
})
|