Merge pull request #328725 from devusb/theforceengine
theforceengine: 1.09.540 -> 1.10.000
This commit is contained in:
commit
c3d383d336
@ -9,17 +9,23 @@
|
|||||||
, alsa-lib
|
, alsa-lib
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, zenity
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
# package depends on SDL2main static library
|
||||||
|
SDL2' = SDL2.override {
|
||||||
|
withStatic = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "theforceengine";
|
pname = "theforceengine";
|
||||||
version = "1.09.540";
|
version = "1.10.000";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "luciusDXL";
|
owner = "luciusDXL";
|
||||||
repo = "TheForceEngine";
|
repo = "TheForceEngine";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-s54X6LZdk7daIlQPHyRBxc8MLS6bzkkypi4m1m+xK80=";
|
hash = "sha256-oEcjHb6HY5qxKuPoNBuobPbdi39hUUWtKSb7FbAfEpc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -28,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2'
|
||||||
SDL2_image
|
SDL2_image
|
||||||
rtaudio
|
rtaudio
|
||||||
rtmidi
|
rtmidi
|
||||||
@ -39,7 +45,12 @@ stdenv.mkDerivation rec {
|
|||||||
prePatch = ''
|
prePatch = ''
|
||||||
# use nix store path instead of hardcoded /usr/share for support data
|
# use nix store path instead of hardcoded /usr/share for support data
|
||||||
substituteInPlace TheForceEngine/TFE_FileSystem/paths-posix.cpp \
|
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; {
|
meta = with lib; {
|
@ -36805,8 +36805,6 @@ with pkgs;
|
|||||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||||
};
|
};
|
||||||
|
|
||||||
theforceengine = callPackage ../games/theforceengine { };
|
|
||||||
|
|
||||||
tbe = libsForQt5.callPackage ../games/the-butterfly-effect { };
|
tbe = libsForQt5.callPackage ../games/the-butterfly-effect { };
|
||||||
|
|
||||||
tbls = callPackage ../tools/misc/tbls { };
|
tbls = callPackage ../tools/misc/tbls { };
|
||||||
|
Loading…
Reference in New Issue
Block a user