mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
39 lines
825 B
Nix
39 lines
825 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, SDL
|
|
, SDL_mixer
|
|
, directoryListingUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ltris";
|
|
version = "1.2.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/lgames/${pname}-${version}.tar.gz";
|
|
hash = "sha256-wjziFFTAOJxSl6fvLhTv6ATZQGJefusDhqKXgOwsRvY=";
|
|
};
|
|
|
|
buildInputs = [
|
|
SDL
|
|
SDL_mixer
|
|
];
|
|
|
|
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";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ AndersonTorres ciil ];
|
|
inherit (SDL.meta) platforms;
|
|
};
|
|
}
|