summary refs log tree commit diff
path: root/pkgs/games/quake3/ioquake/default.nix
blob: 4e3a50b37b9a23ec432f217e6fac29bdda8cb9d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchFromGitHub, which, pkgconfig, SDL2, libGLU_combined, openalSoft
, curl, speex, opusfile, libogg, libvorbis, libopus, libjpeg, mumble, freetype
}:

stdenv.mkDerivation rec {
  name = "ioquake3-git-${version}";
  version = "2018-02-23";

  src = fetchFromGitHub {
    owner = "ioquake";
    repo = "ioq3";
    rev = "0d6edd227a13f1447938da1d1b020303c2545eb2";
    sha256 = "1nsagyzrai8cxhabcv2my8bbwmwckvri288j6x4qi5bmp78xl4hx";
  };

  nativeBuildInputs = [ which pkgconfig ];
  buildInputs = [
    SDL2 libGLU_combined openalSoft curl speex opusfile libogg libvorbis libopus libjpeg
    freetype mumble
  ];

  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
  '';

  meta = with stdenv.lib; {
    homepage = https://ioquake3.org/;
    description = "First person shooter engine based on the Quake 3: Arena and Quake 3: Team Arena";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ eelco abbradar ];
  };
}