nixpkgs/pkgs/applications/science/astronomy/stellarium/default.nix
Peter Simons fd8c16adb8 stellarium: updated to version 0.11.2
svn path=/nixpkgs/trunk/; revision=33538
2012-04-02 15:19:05 +00:00

31 lines
837 B
Nix

{stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, qt4, perl, libiconv}:
let
name = "stellarium-0.11.2";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://sourceforge/stellarium/${name}.tar.gz";
sha256 = "1qk26s0gal2pqr8zy95270fiszxsc6znzzrj5jap91zzibn17945";
};
buildInputs = [ cmake freetype libpng mesa gettext openssl qt4 perl libiconv ];
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";
platforms = stdenv.lib.platforms.linux; # should be mesaPlatforms, but we don't have qt on darwin
maintainers = [ stdenv.lib.maintainers.simons ];
};
}