2016-06-19 16:08:40 +02:00
|
|
|
{ stdenv, fetchgit, qt5, box2d, which, cmake, gettext }:
|
2010-12-17 16:41:30 +01:00
|
|
|
|
2015-12-29 16:24:48 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "tbe";
|
2016-06-19 16:08:40 +02:00
|
|
|
version = "0.9.3.1";
|
2010-12-17 16:41:30 +01:00
|
|
|
|
2016-06-19 16:08:40 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/kaa-ching/tbe";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj";
|
2015-12-29 16:24:48 +01:00
|
|
|
};
|
2010-12-17 16:41:30 +01:00
|
|
|
|
2016-06-19 10:18:30 +02:00
|
|
|
postPatch = "sed '1i#include <vector>' -i src/model/World.h";
|
|
|
|
|
2016-06-19 16:08:40 +02:00
|
|
|
buildInputs = [
|
|
|
|
qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which cmake
|
|
|
|
gettext
|
|
|
|
];
|
2016-06-19 10:18:30 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-12-29 16:24:48 +01:00
|
|
|
installPhase = ''
|
|
|
|
make DESTDIR=.. install
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ../usr/games/tbe $out/bin
|
|
|
|
cp -r ../usr/share $out/
|
2010-12-17 16:41:30 +01:00
|
|
|
'';
|
|
|
|
|
2015-12-29 16:24:48 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-12-17 16:41:30 +01:00
|
|
|
description = "A physics-based game vaguely similar to Incredible Machine";
|
2015-12-29 16:24:48 +01:00
|
|
|
homepage = http://the-butterfly-effect.org/;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2010-12-17 16:41:30 +01:00
|
|
|
};
|
2015-12-29 16:24:48 +01:00
|
|
|
}
|