lbreakout2: fix build on Darwin
This commit is contained in:
parent
507c207958
commit
2d64e1b7d0
|
@ -1,21 +1,22 @@
|
||||||
{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng }:
|
{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, libintlOrEmpty }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lbreakout2-${version}";
|
name = "lbreakout2-${version}";
|
||||||
version = "2.6.5";
|
version = "2.6.5";
|
||||||
buildInputs = [ SDL SDL_mixer zlib libpng ];
|
buildInputs = [ SDL SDL_mixer zlib libpng ] ++ libintlOrEmpty;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/lgames/${name}.tar.gz";
|
url = "mirror://sourceforge/lgames/${name}.tar.gz";
|
||||||
sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i";
|
sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Breakout clone from the LGames series";
|
description = "Breakout clone from the LGames series";
|
||||||
homepage = http://lgames.sourceforge.net/LBreakout2/;
|
homepage = http://lgames.sourceforge.net/LBreakout2/;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.ciil ];
|
maintainers = [ maintainers.ciil ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue