2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qt5, box2d, which, cmake, gettext }:
|
2010-12-17 15:41:30 +00:00
|
|
|
|
2020-05-09 09:59:13 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tbe";
|
2016-06-19 14:08:40 +00:00
|
|
|
version = "0.9.3.1";
|
2010-12-17 15:41:30 +00:00
|
|
|
|
2020-11-01 22:39:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kaa-ching";
|
|
|
|
repo = pname;
|
2016-06-19 14:08:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj";
|
2015-12-29 15:24:48 +00:00
|
|
|
};
|
2010-12-17 15:41:30 +00:00
|
|
|
|
2016-06-19 08:18:30 +00:00
|
|
|
postPatch = "sed '1i#include <vector>' -i src/model/World.h";
|
|
|
|
|
2022-03-30 21:35:38 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-06-19 14:08:40 +00:00
|
|
|
buildInputs = [
|
2022-03-30 21:35:38 +00:00
|
|
|
qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which
|
2016-06-19 14:08:40 +00:00
|
|
|
gettext
|
|
|
|
];
|
2016-06-19 08:18:30 +00:00
|
|
|
|
2015-12-29 15:24:48 +00:00
|
|
|
installPhase = ''
|
|
|
|
make DESTDIR=.. install
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ../usr/games/tbe $out/bin
|
|
|
|
cp -r ../usr/share $out/
|
2010-12-17 15:41:30 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-12-17 15:41:30 +00:00
|
|
|
description = "A physics-based game vaguely similar to Incredible Machine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://the-butterfly-effect.org/";
|
2015-12-29 15:24:48 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2010-12-17 15:41:30 +00:00
|
|
|
};
|
2015-12-29 15:24:48 +00:00
|
|
|
}
|