nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 38 lines 825 B view raw
1{ lib 2, stdenv 3, fetchurl 4, SDL 5, SDL_mixer 6, directoryListingUpdater 7}: 8 9stdenv.mkDerivation rec { 10 pname = "ltris"; 11 version = "1.2.6"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/lgames/${pname}-${version}.tar.gz"; 15 hash = "sha256-wjziFFTAOJxSl6fvLhTv6ATZQGJefusDhqKXgOwsRvY="; 16 }; 17 18 buildInputs = [ 19 SDL 20 SDL_mixer 21 ]; 22 23 hardeningDisable = [ "format" ]; 24 25 passthru.updateScript = directoryListingUpdater { 26 inherit pname version; 27 url = "https://lgames.sourceforge.io/LTris/"; 28 extraRegex = "(?!.*-win(32|64)).*"; 29 }; 30 31 meta = with lib; { 32 homepage = "https://lgames.sourceforge.io/LTris/"; 33 description = "Tetris clone from the LGames series"; 34 license = licenses.gpl2Plus; 35 maintainers = with maintainers; [ AndersonTorres ciil ]; 36 inherit (SDL.meta) platforms; 37 }; 38}