mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, fetchpatch
|
|
, SDL
|
|
, SDL_mixer
|
|
, libintl
|
|
, libpng
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lbreakout2";
|
|
version = "2.6.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/lgames/${pname}-${version}.tar.gz";
|
|
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
|
|
libintl
|
|
libpng
|
|
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";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.ciil ];
|
|
platforms = platforms.unix;
|
|
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
|
};
|
|
}
|