lbreakout2: fix runtime issues

+12
+12
pkgs/games/lgames/lbreakout2/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchurl 4 + , fetchpatch 4 5 , SDL 5 6 , SDL_mixer 6 7 , libintl ··· 17 18 sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; 18 19 }; 19 20 21 + # Can't exit from pause without this patch 22 + patches = [(fetchpatch { 23 + url = "https://sources.debian.org/data/main/l/lbreakout2/2.6.5-2/debian/patches/sdl_fix_pauses.patch"; 24 + hash = "sha256-ycsuxfokpOblLky42MwtJowdEp7v5dZRMFIR4id4ZBI="; 25 + })]; 26 + 20 27 buildInputs = [ 21 28 SDL 22 29 SDL_mixer ··· 24 31 libpng 25 32 zlib 26 33 ]; 34 + 35 + # With fortify it crashes at runtime: 36 + # *** buffer overflow detected ***: terminated 37 + # Aborted (core dumped) 38 + hardeningDisable = [ "fortify" ]; 27 39 28 40 meta = with lib; { 29 41 homepage = "http://lgames.sourceforge.net/LBreakout2/";