1 { lib, mkDerivation, fetchFromGitHub, qt5, box2d, which, cmake, gettext }:
7 src = fetchFromGitHub {
10 rev = "refs/tags/v${version}";
11 sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj";
14 postPatch = "sed '1i#include <vector>' -i src/model/World.h";
16 nativeBuildInputs = [ cmake ];
18 qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which
23 make DESTDIR=.. install
25 cp ../usr/games/tbe $out/bin
26 cp -r ../usr/share $out/
30 description = "A physics-based game vaguely similar to Incredible Machine";
31 homepage = "http://the-butterfly-effect.org/";
32 maintainers = [ maintainers.raskin ];
33 platforms = platforms.linux;
34 license = licenses.gpl2;