1 { lib, mkDerivation, fetchFromGitHub, cmake, qttools, wrapQtAppsHook, qtbase, qtsvg }:
7 src = fetchFromGitHub {
10 rev = "refs/tags/v${version}";
11 sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj";
15 sed '1i#include <vector>' -i src/model/World.h
17 # fix translations not building: https://gitlab.kitware.com/cmake/cmake/-/issues/21931
18 substituteInPlace i18n/CMakeLists.txt --replace qt5_create_translation qt_add_translation
21 nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
22 buildInputs = [ qtbase qtsvg ];
26 make DESTDIR=.. install
28 cp ../usr/games/tbe $out/bin
29 cp -r ../usr/share $out/
33 description = "Physics-based game vaguely similar to Incredible Machine";
35 homepage = "http://the-butterfly-effect.org/";
36 maintainers = [ maintainers.raskin ];
37 platforms = platforms.linux;
38 license = licenses.gpl2Only;