forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.nix
100 lines (86 loc) · 1.66 KB
/
default.nix
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
lib,
stdenv,
fetchFromGitHub,
gzip,
libvorbis,
libmad,
SDL2,
SDL2_mixer,
libpng,
alsa-lib,
gnutls,
zlib,
libjpeg,
vulkan-loader,
vulkan-headers,
speex,
libopus,
xorg,
libGL,
}@attrs:
{
fteqw = import ./generic.nix (
rec {
pname = "fteqw";
buildFlags = [ "m-rel" ];
nativeBuildInputs = [
vulkan-headers
];
buildInputs = [
gzip
libvorbis
libmad
SDL2
SDL2_mixer
libpng
alsa-lib
gnutls
libjpeg
vulkan-loader
speex
libopus
xorg.libXrandr
xorg.libXcursor
];
postFixup = ''
patchelf $out/bin/${pname} \
--add-needed ${SDL2}/lib/libSDL2.so \
--add-needed ${libGL}/lib/libGLX.so \
--add-needed ${libGL}/lib/libGL.so \
--add-needed ${lib.getLib gnutls}/lib/libgnutls.so \
--add-needed ${vulkan-loader}/lib/libvulkan.so
'';
description = "Hybrid and versatile game engine";
}
// attrs
);
fteqw-dedicated = import ./generic.nix (
rec {
pname = "fteqw-dedicated";
releaseFile = "fteqw-sv";
buildFlags = [ "sv-rel" ];
buildInputs = [
gnutls
zlib
];
postFixup = ''
patchelf $out/bin/${pname} \
--add-needed ${gnutls}/lib/libgnutls.so \
'';
description = "Dedicated server for FTEQW";
}
// attrs
);
fteqcc = import ./generic.nix (
{
pname = "fteqcc";
buildFlags = [ "qcc-rel" ];
buildInputs = [
zlib
];
description = "User friendly QuakeC compiler";
}
// attrs
);
}