about summary refs log tree commit diff
path: root/pkgs/applications/science/astronomy/stellarium
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-07-10 20:17:44 +0000
committerPeter Simons <simons@cryp.to>2011-07-10 20:17:44 +0000
commit8223f679290e73ac456020fbcd150af3b1929d37 (patch)
tree727549f813900398b2ac0189e145d0817993be6b /pkgs/applications/science/astronomy/stellarium
parent03446e108d2e4b7481d13184deb2c5f6591122ba (diff)
Added stellarium 0.11.0.
svn path=/nixpkgs/trunk/; revision=27697
Diffstat (limited to 'pkgs/applications/science/astronomy/stellarium')
-rw-r--r--pkgs/applications/science/astronomy/stellarium/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/science/astronomy/stellarium/default.nix b/pkgs/applications/science/astronomy/stellarium/default.nix
new file mode 100644
index 0000000000000..916363182a697
--- /dev/null
+++ b/pkgs/applications/science/astronomy/stellarium/default.nix
@@ -0,0 +1,29 @@
+{stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, qt4, perl, libiconv}:
+
+let
+  name = "stellarium-0.11.0";
+in
+stdenv.mkDerivation {
+  inherit name;
+
+  src = fetchurl {
+    url = "mirror://sourceforge/stellarium/${name}.tar.gz";
+    sha256 = "dbedf47dd0744fb325d67d63d1279101be7f4259af2a5e8027f1072012dd2587";
+  };
+
+  buildInputs = [ cmake freetype libpng mesa gettext openssl qt4 perl libiconv ];
+
+  cmakeFlags = "-DINTL_INCLUDE_DIR= -DINTL_LIBRARIES=";
+  preConfigure = ''
+    sed -i -e '/typedef void (\*__GLXextFuncPtr)(void);/d' src/core/external/GLee.h
+  '';
+
+  enableParallelBuilding = true;
+
+  meta = {
+    description = "an free open source planetarium";
+    homepage = http://stellarium.org/;
+    license = "GPL2";
+    maintainers = [ stdenv.lib.maintainers.simons ];
+  };
+}