2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, which
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, libGL
|
|
|
|
, openalSoft
|
|
|
|
, curl
|
|
|
|
, speex
|
|
|
|
, opusfile
|
|
|
|
, libogg
|
|
|
|
, libvorbis
|
|
|
|
, libopus
|
|
|
|
, libjpeg
|
|
|
|
, mumble
|
|
|
|
, freetype
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "ioquake3";
|
|
|
|
version = "unstable-2021-07-20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ioquake";
|
|
|
|
repo = "ioq3";
|
2021-08-11 14:56:57 +00:00
|
|
|
rev = "bc8737d707595aebd7cc11d6d5a5d65ede750f59";
|
|
|
|
sha256 = "1icrkaw6c5c5ndy886bn65lycwnxzxwvz0ndz4p9i6r716k11add";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ which pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
SDL2
|
|
|
|
libGL
|
|
|
|
openalSoft
|
|
|
|
curl
|
|
|
|
speex
|
|
|
|
opusfile
|
|
|
|
libogg
|
|
|
|
libvorbis
|
|
|
|
libopus
|
|
|
|
libjpeg
|
|
|
|
freetype
|
|
|
|
mumble
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
makeFlags = [ "USE_INTERNAL_LIBS=0" "USE_FREETYPE=1" "USE_OPENAL_DLOPEN=0" "USE_CURL_DLOPEN=0" ];
|
|
|
|
|
|
|
|
installTargets = [ "copyfiles" ];
|
|
|
|
|
|
|
|
installFlags = [ "COPYDIR=$(out)" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/baseq3
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://ioquake3.org/";
|
|
|
|
description = "First person shooter engine based on the Quake 3: Arena and Quake 3: Team Arena";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs eelco abbradar ];
|
|
|
|
};
|
|
|
|
}
|