Skip to content

Commit 2d64e1b

Browse files
committedJun 10, 2017
lbreakout2: fix build on Darwin
1 parent 507c207 commit 2d64e1b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎pkgs/games/lbreakout2/default.nix

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng }:
1+
{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, libintlOrEmpty }:
22

33
stdenv.mkDerivation rec {
44
name = "lbreakout2-${version}";
55
version = "2.6.5";
6-
buildInputs = [ SDL SDL_mixer zlib libpng ];
6+
buildInputs = [ SDL SDL_mixer zlib libpng ] ++ libintlOrEmpty;
77

88
src = fetchurl {
99
url = "mirror://sourceforge/lgames/${name}.tar.gz";
1010
sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i";
1111
};
1212

13+
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
14+
1315
meta = with stdenv.lib; {
1416
description = "Breakout clone from the LGames series";
1517
homepage = http://lgames.sourceforge.net/LBreakout2/;
1618
license = licenses.gpl2;
1719
maintainers = [ maintainers.ciil ];
18-
platforms = platforms.linux;
20+
platforms = platforms.unix;
1921
};
2022
}
21-

0 commit comments

Comments
 (0)
Please sign in to comment.