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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, which
, copyDesktopItems
, makeBinaryWrapper
, SDL2
, libGL
, openal
, curl
, speex
, opusfile
, libogg
, libvorbis
, libjpeg
, makeDesktopItem
, freetype
}:
stdenv.mkDerivation {
pname = "ioquake3";
version = "unstable-2023-08-13";
src = fetchFromGitHub {
owner = "ioquake";
repo = "ioq3";
rev = "ee950eb7b0e41437cc23a9943254c958da8a61ab";
sha256 = "sha256-NfhInwrtw85i2mnv7EtBrrpNaslaQaVhLNlK0I9aYto=";
};
nativeBuildInputs = [
copyDesktopItems
makeBinaryWrapper
pkg-config
which
];
buildInputs = [
SDL2
libGL
openal
curl
speex
opusfile
libogg
libvorbis
libjpeg
freetype
];
enableParallelBuilding = true;
makeFlags = [ "USE_INTERNAL_LIBS=0" "USE_FREETYPE=1" "USE_OPENAL_DLOPEN=0" "USE_CURL_DLOPEN=0" ];
installTargets = [ "copyfiles" ];
installFlags = [ "COPYDIR=$(out)/share/ioquake3" ];
postInstall = ''
install -Dm644 misc/quake3.svg $out/share/icons/hicolor/scalable/apps/ioquake3.svg
makeWrapper $out/share/ioquake3/ioquake3.* $out/bin/ioquake3
makeWrapper $out/share/ioquake3/ioq3ded.* $out/bin/ioq3ded
'';
desktopItems = [
(makeDesktopItem {
name = "IOQuake3";
exec = "ioquake3";
icon = "ioquake3";
comment = "A fast-paced 3D first-person shooter, a community effort to continue supporting/developing id's Quake III Arena";
desktopName = "ioquake3";
categories = [ "Game" "ActionGame" ];
})
];
meta = {
homepage = "https://ioquake3.org/";
description = "A fast-paced 3D first-person shooter, a community effort to continue supporting/developing id's Quake III Arena";
license = lib.licenses.gpl2Plus;
mainProgram = "ioquake3";
maintainers = with lib.maintainers; [ abbradar drupol eelco rvolosatovs ];
platforms = lib.platforms.linux;
};
}
|