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";
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "2.4.22";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.bzflag.org/${pname}/source/${version}/${pname}-${version}.tar.bz2";
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "sha256-nmRlMwK2V72LX5b+EVCp/4Ch1Tptfoo1E4xrGwIAak0=";
|
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;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|