2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchpatch
|
2022-04-27 09:35:20 +00:00
|
|
|
, SDL
|
|
|
|
, SDL_mixer
|
|
|
|
, libintl
|
|
|
|
, libpng
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lbreakout2";
|
|
|
|
version = "2.6.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/lgames/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i";
|
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
# 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=";
|
|
|
|
})];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
SDL_mixer
|
|
|
|
libintl
|
|
|
|
libpng
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
# With fortify it crashes at runtime:
|
|
|
|
# *** buffer overflow detected ***: terminated
|
|
|
|
# Aborted (core dumped)
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://lgames.sourceforge.net/LBreakout2/";
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Breakout clone from the LGames series";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.ciil ];
|
|
|
|
platforms = platforms.unix;
|
2021-01-15 22:18:51 +00:00
|
|
|
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|