blob: d2a843da42bc93bf214a214a725e5893f0eb061b (
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
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, SDL2_image
, rtaudio
, rtmidi
, glew
, alsa-lib
, cmake
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "theforceengine";
version = "1.09.540";
src = fetchFromGitHub {
owner = "luciusDXL";
repo = "TheForceEngine";
rev = "v${version}";
sha256 = "sha256-s54X6LZdk7daIlQPHyRBxc8MLS6bzkkypi4m1m+xK80=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
SDL2
SDL2_image
rtaudio
rtmidi
glew
alsa-lib
];
prePatch = ''
# use nix store path instead of hardcoded /usr/share for support data
substituteInPlace TheForceEngine/TFE_FileSystem/paths-posix.cpp \
--replace "/usr/share" "$out/share"
'';
meta = with lib; {
description = "Modern \"Jedi Engine\" replacement supporting Dark Forces, mods, and in the future, Outlaws";
homepage = "https://theforceengine.github.io";
license = licenses.gpl2Only;
maintainers = with maintainers; [ devusb ];
platforms = [ "x86_64-linux" ];
};
}
|