Merge pull request #211152 from ThibaultLemaire/stuntrally-2.7

stuntrally: 2.6.2 -> 2.7
This commit is contained in:
Weijia Wang 2023-03-22 18:45:45 +02:00 committed by GitHub
commit 3efc9e2dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 8 deletions

View file

@ -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; {

View file

@ -36191,7 +36191,7 @@ with pkgs;
stt = callPackage ../tools/audio/stt { };
stuntrally = callPackage ../games/stuntrally
{ ogre = ogre1_9; mygui = mygui.override { withOgre = true; }; };
{ };
superTux = callPackage ../games/supertux { };