9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, SDL2
|
|
, libdevil
|
|
, rtaudio
|
|
, rtmidi
|
|
, glew
|
|
, alsa-lib
|
|
, cmake
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "theforceengine";
|
|
version = "1.09.300";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "luciusDXL";
|
|
repo = "TheForceEngine";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nf5fhP68AgBESiJleeZOLXkAajS+JmHUqyj4vAt2wl4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
libdevil
|
|
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" ];
|
|
};
|
|
}
|