Skip to content

Commit

Permalink
bzflag: enable on darwin (#52707)
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Dec 22, 2018
1 parent f21a473 commit 98625b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pkgs/games/bzflag/default.nix
@@ -1,5 +1,6 @@
{ stdenv, lib, fetchurl, pkgconfig
, curl, SDL2, libGLU_combined, glew, ncurses, c-ares }:
, curl, SDL2, libGLU_combined, glew, ncurses, c-ares
, Carbon, CoreServices }:

stdenv.mkDerivation rec {
name = "${pname}-${version}";
Expand All @@ -12,13 +13,14 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ curl SDL2 libGLU_combined glew ncurses c-ares ];
buildInputs = [ curl SDL2 libGLU_combined glew ncurses c-ares ]
++ lib.optionals stdenv.isDarwin [ Carbon CoreServices ];

meta = with lib; {
description = "Multiplayer 3D Tank game";
homepage = https://bzflag.org/;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -20460,7 +20460,9 @@ in

btanks = callPackage ../games/btanks { };

bzflag = callPackage ../games/bzflag { };
bzflag = callPackage ../games/bzflag {
inherit (darwin.apple_sdk.frameworks) Carbon CoreServices;
};

cataclysm-dda = callPackage ../games/cataclysm-dda {
inherit (darwin.apple_sdk.frameworks) Cocoa;
Expand Down

0 comments on commit 98625b2

Please sign in to comment.