nixpkgs/pkgs/by-name/lt/ltris/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
936 B
Nix
Raw Normal View History

2022-12-09 17:52:35 +00:00
{ lib
, SDL
, SDL_mixer
, directoryListingUpdater
, fetchurl
, stdenv
2022-12-09 17:52:35 +00:00
}:
2017-06-16 14:32:30 +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 {
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 {
inherit (finalAttrs) pname version;
2022-12-09 17:52:35 +00:00
url = "https://lgames.sourceforge.io/LTris/";
extraRegex = "(?!.*-win(32|64)).*";
};
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";
license = with lib.licenses; [ gpl2Plus ];
mainProgram = "ltris";
maintainers = with lib.maintainers; [ AndersonTorres ];
2022-04-18 03:29:00 +00:00
inherit (SDL.meta) platforms;
broken = stdenv.hostPlatform.isDarwin;
2017-06-16 14:32:30 +00:00
};
})