2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, curl, SDL2, libGLU, libGL, glew, ncurses, c-ares
|
|
|
|
, Carbon, CoreServices }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bzflag";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "2.4.26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.bzflag.org/${pname}/source/${version}/${pname}-${version}.tar.bz2";
|
2022-11-27 09:42:12 +00:00
|
|
|
sha256 = "sha256-AYMEBf8mrR3FlafgaVyCTCeG5niGjZ/4Iq6xSsdIEBQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ curl SDL2 libGLU libGL 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.unix;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|