3
0
Fork 0
forked from mirrors/nixpkgs

bzflag: enable on darwin (#52707)

This commit is contained in:
Dmitry Kalinkin 2018-12-22 18:01:20 -05:00 committed by GitHub
parent f21a4733d0
commit 98625b2bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -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}";
@ -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 ];
};
}

View file

@ -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;