forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
55 lines (48 loc) · 1.25 KB
/
Copy pathpackage.nix
File metadata and controls
55 lines (48 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
lib,
SDL,
SDL_mixer,
fetchpatch,
fetchurl,
libintl,
libpng,
stdenv,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lbreakout2";
version = "2.6.5";
src = fetchurl {
url = "mirror://sourceforge/lgames/lbreakout2-${finalAttrs.version}.tar.gz";
hash = "sha256-kQTWF1VT2jRC3GpfxAemaeL1r/Pu3F0wQJ6wA7enjW8=";
};
patches = [
(fetchpatch {
url = "https://sources.debian.org/data/main/l/lbreakout2/2.6.5-2/debian/patches/sdl_fix_pauses.patch";
hash = "sha256-ycsuxfokpOblLky42MwtJowdEp7v5dZRMFIR4id4ZBI=";
})
];
configureFlags = [
(lib.enableFeature (!stdenv.hostPlatform.isDarwin) "sdltest")
];
buildInputs = [
SDL
SDL_mixer
libintl
libpng
zlib
];
# With fortify it crashes at runtime:
# *** buffer overflow detected ***: terminated
# Aborted (core dumped)
hardeningDisable = [ "fortify" ];
meta = {
homepage = "http://lgames.sourceforge.net/LBreakout2/";
description = "Breakout clone from the LGames series";
license = with lib.licenses; [ gpl2Plus ];
mainProgram = "lbreakout2";
maintainers = [ ];
platforms = lib.platforms.unix;
hydraPlatforms = lib.platforms.linux; # build hangs on both Darwin platforms, needs investigation
};
})