nixpkgs/pkgs/applications/science/astronomy/gravit/default.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

2013-09-17 11:53:27 +02:00
{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, mesa, libpng, lua5, automake, autoconf }:
2012-10-10 19:25:42 +02:00
stdenv.mkDerivation rec {
2015-01-27 13:35:08 +01:00
name = "gravit-0.5.1";
src = fetchurl {
2012-10-10 19:25:42 +02:00
url = "http://gravit.slowchop.com/media/downloads/${name}.tgz";
2015-01-27 13:35:08 +01:00
sha256 = "14vf7zj2bgrl96wsl3f1knsggc8h9624354ajzd72l46y09x5ky7";
};
2013-09-17 11:53:27 +02:00
buildInputs = [mesa SDL SDL_ttf SDL_image lua5 automake autoconf libpng];
2012-10-10 19:25:42 +02:00
preConfigure = "sh autogen.sh";
meta = {
homepage = "http://gravit.slowchop.com";
description = "Beautiful OpenGL-based gravity simulator";
license = stdenv.lib.licenses.gpl2;
longDescription = ''
Gravit is a gravity simulator which runs under Linux, Windows and
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.
'';
platforms = stdenv.lib.platforms.mesaPlatforms;
};
}