2023-02-09 03:19:55 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SDL2
|
2023-09-26 04:43:21 +02:00
|
|
|
, SDL2_image
|
2023-02-09 03:19:55 +01:00
|
|
|
, rtaudio
|
|
|
|
, rtmidi
|
|
|
|
, glew
|
|
|
|
, alsa-lib
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "theforceengine";
|
2023-09-26 04:43:21 +02:00
|
|
|
version = "1.09.540";
|
2023-02-09 03:19:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luciusDXL";
|
|
|
|
repo = "TheForceEngine";
|
|
|
|
rev = "v${version}";
|
2023-09-26 04:43:21 +02:00
|
|
|
sha256 = "sha256-s54X6LZdk7daIlQPHyRBxc8MLS6bzkkypi4m1m+xK80=";
|
2023-02-09 03:19:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
2023-09-26 04:43:21 +02:00
|
|
|
SDL2_image
|
2023-02-09 03:19:55 +01:00
|
|
|
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; {
|
2024-01-12 17:07:33 +01:00
|
|
|
description = "Modern \"Jedi Engine\" replacement supporting Dark Forces, mods, and in the future, Outlaws";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "theforceengine";
|
2023-02-09 03:19:55 +01:00
|
|
|
homepage = "https://theforceengine.github.io";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ devusb ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|