2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, expat
|
2020-04-24 23:36:52 +00:00
|
|
|
, jansson, libpng, libjpeg, libGLU, libGL, libXxf86vm, pcre
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, SDL2, vim, speex }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ezquake";
|
2021-02-17 17:02:09 +00:00
|
|
|
version = "3.2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ezQuake";
|
|
|
|
repo = pname + "-source";
|
|
|
|
rev = version;
|
2021-02-17 17:02:09 +00:00
|
|
|
sha256 = "sha256-EBhKmoX11JavTG6tPfg15FY2lqOFfzSDg3058OWfcYQ=";
|
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 = [
|
|
|
|
expat curl jansson libpng libjpeg libGLU libGL libXxf86vm pcre SDL2 vim speex
|
|
|
|
];
|
|
|
|
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ezquake.github.io/";
|
|
|
|
description = "A modern QuakeWorld client focused on competitive online play";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
}
|