Author: simons
Date: Fri Jul 8 21:23:55 2011
New Revision: 27677
URL: https://svn.nixos.org/websvn/nix/?rev=27677&sc=1
Log:
gravit: added version 0.4.2
Added:
nixpkgs/trunk/pkgs/applications/science/astronomy/gravit/
nixpkgs/trunk/pkgs/applications/science/astronomy/gravit/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/applications/science/astronomy/gravit/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/science/astronomy/gravit/default.nix
Fri Jul 8 21:23:55 2011 (r27677)
@@ -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 ];
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Fri Jul 8 21:23:48
2011 (r27676)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Fri Jul 8 21:23:55
2011 (r27677)
@@ -752,6 +752,8 @@
inherit (gtkLibs) pango;
};
+ gravit = callPackage ../applications/science/astronomy/gravit { };
+
groff = callPackage ../tools/text/groff {
ghostscript = null;
};
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits