1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7let
8 version = "1.11-6";
9in
10stdenv.mkDerivation {
11 pname = "quake3-demodata";
12 inherit version;
13
14 src = fetchurl {
15 url = "https://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/quake3/linux/linuxq3ademo-${version}.x86.gz.sh";
16 sha256 = "1v54a1hx1bczk9hgn9qhx8vixsy7xn7wj2pylhfjsybfkgvf7pk4";
17 };
18
19 buildCommand = ''
20 tail -n +165 $src | tar xfz -
21
22 mkdir -p $out/baseq3
23 cp demoq3/*.pk3 $out/baseq3
24 '';
25
26 preferLocalBuild = true;
27
28 meta = with lib; {
29 description = "Demo of Quake 3 Arena, a classic first-person shooter";
30 longDescription = ''
31 Quake III Arena and it's demo don't offer current wide screen resolutions in the menu.
32
33 To switch to such a resolution, you will have to enter something like this in the quake console (invoke with ~ by default)
34
35 r_mode -1; r_customwidth 2560; r_customheight 1440; r_fullscreen 1; vid_restart
36
37 Or call the quake commandline with these parameters
38
39 $ quake3 +set r_mode -1 +set r_customwidth 2560 +set r_customheight 1440 +set r_fullscreen 1
40 '';
41 homepage = "https://www.idsoftware.com/";
42 license = licenses.unfreeRedistributable;
43 platforms = platforms.all;
44 maintainers = with maintainers; [ abbradar ];
45 };
46}