2012-10-10 19:25:42 +02:00
|
|
|
{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, mesa, lua5_1, automake, autoconf }:
|
2011-07-08 23:23:55 +02:00
|
|
|
|
2012-10-10 19:25:42 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gravit-0.5.0";
|
2011-07-08 23:23:55 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-10 19:25:42 +02:00
|
|
|
url = "http://gravit.slowchop.com/media/downloads/${name}.tgz";
|
|
|
|
sha256 = "0lyw0skrkb04s16vgz7ggswjrdxk1h23v5s85s09gjxzjp1xd3xp";
|
2011-07-08 23:23:55 +02:00
|
|
|
};
|
|
|
|
|
2012-10-10 19:25:42 +02:00
|
|
|
buildInputs = [mesa SDL SDL_ttf SDL_image lua5_1 automake autoconf];
|
2011-07-08 23:23:55 +02:00
|
|
|
|
2012-10-10 19:25:42 +02:00
|
|
|
preConfigure = "sh autogen.sh";
|
2011-07-08 23:23:55 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://gravit.slowchop.com";
|
|
|
|
description = "A beautiful OpenGL-based gravity simulator";
|
|
|
|
license = "GPLv2";
|
|
|
|
|
|
|
|
longDescription = ''
|
2011-11-08 11:01:14 +01:00
|
|
|
Gravit is a gravity simulator which runs under Linux, Windows and
|
2011-07-08 23:23:55 +02:00
|
|
|
Mac OS X. It uses Newtonian physics using the Barnes-Hut N-body
|
|
|
|
algorithm. Although the main goal of Gravit is to be as accurate
|
|
|
|
as possible, it also creates beautiful looking gravity patterns.
|
|
|
|
It records the history of each particle so it can animate and
|
|
|
|
display a path of its travels. At any stage you can rotate your
|
|
|
|
view in 3D and zoom in and out.
|
|
|
|
'';
|
|
|
|
|
2011-07-14 22:53:30 +02:00
|
|
|
platforms = stdenv.lib.platforms.mesaPlatforms;
|
2011-07-08 23:23:55 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|