Merge pull request #328725 from devusb/theforceengine

theforceengine: 1.09.540 -> 1.10.000
This commit is contained in:
Artturin 2024-07-22 01:26:54 +03:00 committed by GitHub
commit c3d383d336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 7 deletions

View File

@ -9,17 +9,23 @@
, alsa-lib
, cmake
, pkg-config
, zenity
}:
let
# package depends on SDL2main static library
SDL2' = SDL2.override {
withStatic = true;
};
in
stdenv.mkDerivation rec {
pname = "theforceengine";
version = "1.09.540";
version = "1.10.000";
src = fetchFromGitHub {
owner = "luciusDXL";
repo = "TheForceEngine";
rev = "v${version}";
sha256 = "sha256-s54X6LZdk7daIlQPHyRBxc8MLS6bzkkypi4m1m+xK80=";
hash = "sha256-oEcjHb6HY5qxKuPoNBuobPbdi39hUUWtKSb7FbAfEpc=";
};
nativeBuildInputs = [
@ -28,7 +34,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [
SDL2
SDL2'
SDL2_image
rtaudio
rtmidi
@ -39,7 +45,12 @@ stdenv.mkDerivation rec {
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"
--replace-fail "/usr/share" "$out/share"
# use zenity from nix store
substituteInPlace TheForceEngine/TFE_Ui/portable-file-dialogs.h \
--replace-fail "check_program(\"zenity\")" "check_program(\"${lib.getExe zenity}\")" \
--replace-fail "flags(flag::has_zenity) ? \"zenity\"" "flags(flag::has_zenity) ? \"${lib.getExe zenity}\""
'';
meta = with lib; {

View File

@ -36805,8 +36805,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
theforceengine = callPackage ../games/theforceengine { };
tbe = libsForQt5.callPackage ../games/the-butterfly-effect { };
tbls = callPackage ../tools/misc/tbls { };