nixpkgs/pkgs/applications/science/astronomy/stellarium/default.nix

31 lines
837 B
Nix
Raw Normal View History

{stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, qt4, perl, libiconv}:
let
name = "stellarium-0.11.1";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://sourceforge/stellarium/${name}.tar.gz";
sha256 = "1lrz52g2li92yjsrnxqqfmgjy2jmcqszwqpaq9rz9319nd1f2zpl";
};
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 ];
};
}