3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/astronomy/gravit/default.nix

44 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchurl, SDL, SDL_ttf, SDL_image, libSM, libICE, libGLU, libGL, libpng, lua5, autoconf, automake }:
2012-10-10 18:25:42 +01:00
stdenv.mkDerivation rec {
pname = "gravit";
version = "0.5.1";
src = fetchurl {
url = "https://gravit.slowchop.com/media/downloads/gravit-${version}.tgz";
2015-01-27 12:35:08 +00:00
sha256 = "14vf7zj2bgrl96wsl3f1knsggc8h9624354ajzd72l46y09x5ky7";
};
2019-11-10 16:44:34 +00:00
buildInputs = [ libGLU libGL SDL SDL_ttf SDL_image lua5 libpng libSM libICE ];
2016-08-27 22:22:59 +01:00
nativeBuildInputs = [ autoconf automake ];
preConfigure = ''
./autogen.sh
# Build fails on Linux with windres.
export ac_cv_prog_WINDRES=
'';
enableParallelBuilding = true;
meta = {
homepage = "https://gravit.slowchop.com";
description = "Beautiful OpenGL-based gravity simulator";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl2;
longDescription = ''
Gravit is a gravity simulator which runs under Linux, Windows and
macOS. 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.
'';
2021-01-15 13:21:58 +00:00
platforms = lib.platforms.mesaPlatforms;
hydraPlatforms = lib.platforms.linux; # darwin times out
};
}