Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
sdl2-compat,
|
|
SDL2_mixer,
|
|
SDL2_image,
|
|
SDL2_ttf,
|
|
directoryListingUpdater,
|
|
fetchurl,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ltris";
|
|
version = "2.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/lgames/ltris2-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-SCFQSV+dh7sTnVrxq+xwMDg8N/2z51pF6brWfq15jto=";
|
|
};
|
|
|
|
buildInputs = [
|
|
sdl2-compat
|
|
SDL2_mixer
|
|
SDL2_image
|
|
SDL2_ttf
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
passthru.updateScript = directoryListingUpdater {
|
|
pname = "ltris2";
|
|
inherit (finalAttrs) version;
|
|
url = "https://lgames.sourceforge.io/LTris/";
|
|
extraRegex = "(?!.*-win(32|64)).*";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://lgames.sourceforge.io/LTris/";
|
|
description = "Tetris clone from the LGames series";
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
mainProgram = "ltris2";
|
|
maintainers = with lib.maintainers; [ marcin-serwin ];
|
|
platforms = lib.platforms.all;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
})
|