diff --git a/pkgs/games/stuntrally/default.nix b/pkgs/games/stuntrally/default.nix index b4b2268c33e9..813701c6ccd1 100644 --- a/pkgs/games/stuntrally/default.nix +++ b/pkgs/games/stuntrally/default.nix @@ -48,6 +48,13 @@ stdenv.mkDerivation rec { hash = "sha256-fglm1FetFGHM/qGTtpxDb8+k2iAREn5DQR5GPujuLms="; }; + postPatch = '' + substituteInPlace config/*-default.cfg \ + --replace "screenshot_png = off" "screenshot_png = on" + substituteInPlace source/*/BaseApp_Create.cpp \ + --replace "Codec_FreeImage" "Codec_STBI" + ''; + preConfigure = '' rmdir data/tracks ln -s ${tracks}/ data/tracks