2016-03-04 22:05:48 +00:00
|
|
|
{ stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, perl, libiconv
|
2016-07-22 21:21:17 +01:00
|
|
|
, qtscript, qtserialport, qttools, makeQtWrapper
|
2016-12-18 21:48:54 +00:00
|
|
|
, qtmultimedia
|
2016-03-04 22:05:48 +00:00
|
|
|
}:
|
2011-07-10 21:17:44 +01:00
|
|
|
|
2013-12-09 11:41:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-12-18 21:48:54 +00:00
|
|
|
name = "stellarium-${version}";
|
|
|
|
version = "0.15.0";
|
2011-07-10 21:17:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/stellarium/${name}.tar.gz";
|
2016-12-18 21:48:54 +00:00
|
|
|
sha256 = "0il751lgnfkx35h1m8fzwwnrygpxjx2a80gng1i1rbybkykf7l3l";
|
2011-07-10 21:17:44 +01:00
|
|
|
};
|
|
|
|
|
2016-07-22 21:21:17 +01:00
|
|
|
nativeBuildInputs = [ makeQtWrapper ];
|
|
|
|
|
2016-03-04 22:05:48 +00:00
|
|
|
buildInputs = [
|
|
|
|
cmake freetype libpng mesa gettext openssl perl libiconv qtscript
|
2016-12-18 21:48:54 +00:00
|
|
|
qtserialport qttools qtmultimedia
|
2016-03-04 22:05:48 +00:00
|
|
|
];
|
2011-07-10 21:17:44 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-07-22 21:21:17 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapQtProgram "$out/bin/stellarium"
|
|
|
|
'';
|
|
|
|
|
2011-07-10 21:17:44 +01:00
|
|
|
meta = {
|
2012-10-19 09:19:41 +01:00
|
|
|
description = "Free open-source planetarium";
|
|
|
|
homepage = "http://stellarium.org/";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-07-14 21:53:30 +01:00
|
|
|
|
2011-07-15 13:47:20 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux; # should be mesaPlatforms, but we don't have qt on darwin
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2011-07-10 21:17:44 +01:00
|
|
|
};
|
|
|
|
}
|