diff options
author | Jason \"Don\" O'Conal <lovek323@gmail.com> | 2013-09-06 11:47:49 +1000 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2013-09-08 10:32:25 +0200 |
commit | 834cd6c886bece46a553203f03522f192b66da2c (patch) | |
tree | 0e650cb505ece6d1b5c81d514e59b56dcf5684dd /pkgs/games/beret | |
parent | 38d54cfc211e2463874cb82d0a6c83a2fb1cb5a3 (diff) |
beret: Fix build on darwin (close #923)
Diffstat (limited to 'pkgs/games/beret')
-rw-r--r-- | pkgs/games/beret/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/games/beret/default.nix b/pkgs/games/beret/default.nix index 2e252a5cd540..a92fe4d7c672 100644 --- a/pkgs/games/beret/default.nix +++ b/pkgs/games/beret/default.nix @@ -6,8 +6,9 @@ stdenv.mkDerivation { buildInputs = [ SDL SDL_image SDL_ttf SDL_mixer ]; NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL"; - - NIX_CFLAGS_LINK = "-lgcc_s"; + NIX_CFLAGS_LINK = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin + "-framework CoreFoundation -framework OpenGL -framework Cocoa"; patches = [ ./use-home-dir.patch ]; @@ -28,11 +29,12 @@ stdenv.mkDerivation { cp -av tahoma.ttf images music rooms sfx $out/share ''; - meta = { + meta = with stdenv.lib; { description = "A 2D puzzle-platformer game about a scientist with telekinetic abilities"; - homepage = http://kiwisauce.com/beret/; - platforms = stdenv.lib.platforms.all; - license = stdenv.lib.licenses.lgpl2; + homepage = http://kiwisauce.com/beret/; + license = licenses.lgpl2; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.all; }; } |