forked from mirrors/nixpkgs
bzflag: enable on darwin (#52707)
This commit is contained in:
parent
f21a4733d0
commit
98625b2bee
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv, lib, fetchurl, pkgconfig
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
@ -12,13 +13,14 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
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; {
|
meta = with lib; {
|
||||||
description = "Multiplayer 3D Tank game";
|
description = "Multiplayer 3D Tank game";
|
||||||
homepage = https://bzflag.org/;
|
homepage = https://bzflag.org/;
|
||||||
license = licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ fpletz ];
|
maintainers = with maintainers; [ fpletz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20460,7 +20460,9 @@ in
|
||||||
|
|
||||||
btanks = callPackage ../games/btanks { };
|
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 {
|
cataclysm-dda = callPackage ../games/cataclysm-dda {
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||||
|
|
Loading…
Reference in a new issue