lbreakout2: fix build on Darwin

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