summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-07-08 21:23:55 +0000
committerPeter Simons <simons@cryp.to>2011-07-08 21:23:55 +0000
commite7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af (patch)
treeeea806ec5329eabc2ae6c209316e12338c06da72 /pkgs/applications
parent574eb09fa46b24ea8c6aa5e4b87b2ab6a72e1e1f (diff)
downloadnixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.tar
nixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.tar.gz
nixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.tar.bz2
nixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.tar.lz
nixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.tar.xz
nixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.tar.zst
nixpkgs-e7746a78edcdaeb95cb3ffe50f5bf41d72c0f1af.zip
gravit: added version 0.4.2
svn path=/nixpkgs/trunk/; revision=27677
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/science/astronomy/gravit/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/science/astronomy/gravit/default.nix b/pkgs/applications/science/astronomy/gravit/default.nix
new file mode 100644
index 00000000000..3e6ebc29519
--- /dev/null
+++ b/pkgs/applications/science/astronomy/gravit/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchurl, SDL, SDL_ttf, SDL_image, mesa }:
+
+let
+  name = "gravit-0.4.2";
+in
+stdenv.mkDerivation {
+  inherit name;
+
+  src = fetchurl {
+    url = "http://gravit.slowchop.com/dist/${name}.tar.gz";
+    sha256 = "f37f3ac256a4acbf575f709addaae8cb01eda4f85537affa28c45f2df6fddb07";
+  };
+
+  buildInputs = [mesa SDL SDL_ttf SDL_image];
+
+  configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3";
+
+  postInstall = ''
+    mv $out/etc/gravit $out/share/gravit/sample-config
+    rmdir $out/etc
+  '';
+
+  meta = {
+    homepage = "http://gravit.slowchop.com";
+    description = "A beautiful OpenGL-based gravity simulator";
+    license = "GPLv2";
+
+    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.all;
+    maintainers = [ stdenv.lib.maintainers.simons ];
+  };
+}