lbreakout2: fix runtime issues
This commit is contained in:
parent
17544589b0
commit
fe8acaa832
1 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, SDL
|
||||
, SDL_mixer
|
||||
, libintl
|
||||
|
@ -17,6 +18,12 @@ stdenv.mkDerivation rec {
|
|||
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 = [
|
||||
SDL
|
||||
SDL_mixer
|
||||
|
@ -25,6 +32,11 @@ stdenv.mkDerivation rec {
|
|||
zlib
|
||||
];
|
||||
|
||||
# With fortify it crashes at runtime:
|
||||
# *** buffer overflow detected ***: terminated
|
||||
# Aborted (core dumped)
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://lgames.sourceforge.net/LBreakout2/";
|
||||
description = "Breakout clone from the LGames series";
|
||||
|
|
Loading…
Reference in a new issue