2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, expat
|
2023-08-04 22:07:22 +00:00
|
|
|
, jansson, libpng, libjpeg, libGLU, libGL
|
|
|
|
, libsndfile, libXxf86vm, pcre, pkg-config, SDL2
|
|
|
|
, vim, speex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ezquake";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "3.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-04 22:07:22 +00:00
|
|
|
owner = "QW-Group";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname + "-source";
|
|
|
|
rev = version;
|
2023-08-04 22:07:22 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
hash = "sha256-mi/VDSZ+ybEAaZOhBGh/cSnrRUAB/h+WQZ4Aml0UfW4=";
|
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 = [
|
2023-08-04 22:07:22 +00:00
|
|
|
expat curl jansson libpng libjpeg libGLU libGL libsndfile libXxf86vm pcre SDL2 vim speex
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
installPhase = with lib; let
|
2020-04-24 23:36:52 +00:00
|
|
|
sys = last (splitString "-" stdenv.hostPlatform.system);
|
|
|
|
arch = head (splitString "-" stdenv.hostPlatform.system);
|
|
|
|
in ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
find .
|
|
|
|
mv ezquake-${sys}-${arch} $out/bin/ezquake
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://ezquake.com/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A modern QuakeWorld client focused on competitive online play";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
}
|