diff options
author | Thibault Lemaire <thibault.lemaire@protonmail.com> | 2023-01-16 22:34:10 +0100 |
---|---|---|
committer | Thibault Lemaire <thibault.lemaire@protonmail.com> | 2023-01-17 21:32:10 +0100 |
commit | 1c13a261cf0d29e5fe20e39d83ce7c5509cde4fe (patch) | |
tree | 21081a4e91de5a744ca76f932533f739ae090adc /pkgs/games/stuntrally | |
parent | ee29a773d16a6bb908c8c833dc6ceaecb403faf0 (diff) |
stuntrally: 2.6.2 -> 2.7
Diffstat (limited to 'pkgs/games/stuntrally')
-rw-r--r-- | pkgs/games/stuntrally/default.nix | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/pkgs/games/stuntrally/default.nix b/pkgs/games/stuntrally/default.nix index 706fd23c65c65..af5535ec7ab6f 100644 --- a/pkgs/games/stuntrally/default.nix +++ b/pkgs/games/stuntrally/default.nix @@ -14,34 +14,50 @@ , libXcursor , bullet , openal +, tinyxml +, tinyxml-2 }: +let + stuntrally_ogre = ogre.overrideAttrs (old: { + cmakeFlags = old.cmakeFlags ++ [ + "-DOGRE_NODELESS_POSITIONING=ON" + "-DOGRE_RESOURCEMANAGER_STRICT=0" + ]; + }); + stuntrally_mygui = mygui.override { + withOgre = true; + inherit ogre; + }; +in + stdenv.mkDerivation rec { - pname = "stunt-rally"; - version = "2.6.2"; + pname = "stuntrally"; + version = "2.7"; src = fetchFromGitHub { owner = "stuntrally"; repo = "stuntrally"; rev = version; - hash = "sha256-9I6hXsosqx+yYiEOEnPXQJHZkGtSU+JqThorwjemlc0="; + hash = "sha256-0Eh9ilIHSh/Uz8TuPnXxLQfy7KF7qqNXUgBXQUCz9ys="; }; tracks = fetchFromGitHub { owner = "stuntrally"; repo = "tracks"; rev = version; - hash = "sha256-eZJAvkKe3PrXDzxTa5WFBHfltB3jhQh8puzOFDO9lso="; + hash = "sha256-fglm1FetFGHM/qGTtpxDb8+k2iAREn5DQR5GPujuLms="; }; preConfigure = '' - ln -s ${tracks} data/tracks + rmdir data/tracks + ln -s ${tracks}/ data/tracks ''; nativeBuildInputs = [ cmake pkg-config makeWrapper ]; buildInputs = [ boost - ogre - mygui + stuntrally_ogre + stuntrally_mygui ois SDL2 libvorbis @@ -49,6 +65,8 @@ stdenv.mkDerivation rec { libXcursor bullet openal + tinyxml + tinyxml-2 ]; meta = with lib; { |