diff options
Diffstat (limited to 'nixpkgs/pkgs/games/theforceengine/default.nix')
-rw-r--r-- | nixpkgs/pkgs/games/theforceengine/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/theforceengine/default.nix b/nixpkgs/pkgs/games/theforceengine/default.nix new file mode 100644 index 000000000000..08209ac28c52 --- /dev/null +++ b/nixpkgs/pkgs/games/theforceengine/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, SDL2 +, libdevil +, rtaudio +, rtmidi +, glew +, alsa-lib +, cmake +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "theforceengine"; + version = "1.09.200"; + + src = fetchFromGitHub { + owner = "luciusDXL"; + repo = "TheForceEngine"; + rev = "v${version}"; + sha256 = "sha256-r3fNhiPl6fjrIbdLoNIyTETw3lpPZCQYlTA2QJgiDgw="; + }; + + 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" ]; + }; +} |