From 2d64e1b7d05dc31fb6a899092c99c693b169dd55 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 10 Jun 2017 07:43:45 +0000 Subject: lbreakout2: fix build on Darwin --- pkgs/games/lbreakout2/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pkgs/games') diff --git a/pkgs/games/lbreakout2/default.nix b/pkgs/games/lbreakout2/default.nix index 363b133243bc..eb9bed9e1d95 100644 --- a/pkgs/games/lbreakout2/default.nix +++ b/pkgs/games/lbreakout2/default.nix @@ -1,21 +1,22 @@ -{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng }: +{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, libintlOrEmpty }: stdenv.mkDerivation rec { name = "lbreakout2-${version}"; version = "2.6.5"; - buildInputs = [ SDL SDL_mixer zlib libpng ]; + buildInputs = [ SDL SDL_mixer zlib libpng ] ++ libintlOrEmpty; src = fetchurl { url = "mirror://sourceforge/lgames/${name}.tar.gz"; sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; }; + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; + meta = with stdenv.lib; { description = "Breakout clone from the LGames series"; homepage = http://lgames.sourceforge.net/LBreakout2/; license = licenses.gpl2; maintainers = [ maintainers.ciil ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } - -- cgit 1.4.1