lbreakout2: fix build on Darwin

+5 -4
+5 -4
pkgs/games/lbreakout2/default.nix
··· 1 - { stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng }: 2 3 stdenv.mkDerivation rec { 4 name = "lbreakout2-${version}"; 5 version = "2.6.5"; 6 - buildInputs = [ SDL SDL_mixer zlib libpng ]; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/lgames/${name}.tar.gz"; 10 sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; 11 }; 12 13 meta = with stdenv.lib; { 14 description = "Breakout clone from the LGames series"; 15 homepage = http://lgames.sourceforge.net/LBreakout2/; 16 license = licenses.gpl2; 17 maintainers = [ maintainers.ciil ]; 18 - platforms = platforms.linux; 19 }; 20 } 21 -
··· 1 + { stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, libintlOrEmpty }: 2 3 stdenv.mkDerivation rec { 4 name = "lbreakout2-${version}"; 5 version = "2.6.5"; 6 + buildInputs = [ SDL SDL_mixer zlib libpng ] ++ libintlOrEmpty; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/lgames/${name}.tar.gz"; 10 sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; 11 }; 12 13 + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; 14 + 15 meta = with stdenv.lib; { 16 description = "Breakout clone from the LGames series"; 17 homepage = http://lgames.sourceforge.net/LBreakout2/; 18 license = licenses.gpl2; 19 maintainers = [ maintainers.ciil ]; 20 + platforms = platforms.unix; 21 }; 22 }