From 672a13811cc2ac096cc09734d921128cc0f497e0 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 14 Jan 2024 20:13:54 +0100 Subject: [PATCH] stuntrally: drop freeimage --- pkgs/games/stuntrally/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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