lbreakout2: fix runtime issues

This commit is contained in:
Francesco Gazzetta 2023-08-18 11:18:09 +02:00
parent 17544589b0
commit fe8acaa832

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchurl
, fetchpatch
, SDL , SDL
, SDL_mixer , SDL_mixer
, libintl , libintl
@ -17,6 +18,12 @@ stdenv.mkDerivation rec {
sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i";
}; };
# Can't exit from pause without this patch
patches = [(fetchpatch {
url = "https://sources.debian.org/data/main/l/lbreakout2/2.6.5-2/debian/patches/sdl_fix_pauses.patch";
hash = "sha256-ycsuxfokpOblLky42MwtJowdEp7v5dZRMFIR4id4ZBI=";
})];
buildInputs = [ buildInputs = [
SDL SDL
SDL_mixer SDL_mixer
@ -25,6 +32,11 @@ stdenv.mkDerivation rec {
zlib zlib
]; ];
# With fortify it crashes at runtime:
# *** buffer overflow detected ***: terminated
# Aborted (core dumped)
hardeningDisable = [ "fortify" ];
meta = with lib; { meta = with lib; {
homepage = "http://lgames.sourceforge.net/LBreakout2/"; homepage = "http://lgames.sourceforge.net/LBreakout2/";
description = "Breakout clone from the LGames series"; description = "Breakout clone from the LGames series";