From 98625b2bee4cd36f01de370b5a7af0b8121f4e78 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sat, 22 Dec 2018 18:01:20 -0500 Subject: [PATCH] bzflag: enable on darwin (#52707) --- pkgs/games/bzflag/default.nix | 8 +++++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/games/bzflag/default.nix b/pkgs/games/bzflag/default.nix index c114443e1e72..6c7e9ac76a99 100644 --- a/pkgs/games/bzflag/default.nix +++ b/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}"; @@ -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 ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a4cbee31b9bf..70b223cb83eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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;