1 { lib, stdenv, fetchFromGitHub, curl, expat
2 , jansson, libpng, libjpeg, libGLU, libGL
3 , libsndfile, libXxf86vm, pcre, pkg-config, SDL2
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
12 repo = pname + "-source";
14 fetchSubmodules = true;
15 hash = "sha256-ThrsJfj+eP7Lv2ZSNLO6/b98VHrL6/rhwf2p0qMvTF8=";
18 nativeBuildInputs = [ pkg-config ];
20 expat curl jansson libpng libjpeg libGLU libGL libsndfile libXxf86vm pcre SDL2 vim speex
23 installPhase = with lib; let
24 sys = last (splitString "-" stdenv.hostPlatform.system);
25 arch = head (splitString "-" stdenv.hostPlatform.system);
29 mv ezquake-${sys}-${arch} $out/bin/ezquake
32 enableParallelBuilding = true;
35 homepage = "https://ezquake.com/";
36 description = "A modern QuakeWorld client focused on competitive online play";
37 license = licenses.gpl2;
38 platforms = platforms.linux;
39 maintainers = with maintainers; [ edwtjo ];