2018-06-24 20:26:58 +02:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub
|
2018-02-24 14:12:44 +01:00
|
|
|
, cmake, freetype, libpng, libGLU_combined, gettext, openssl, perl, libiconv
|
2017-05-17 21:26:11 +02:00
|
|
|
, qtscript, qtserialport, qttools
|
2018-06-24 20:26:58 +02:00
|
|
|
, qtmultimedia, qtlocation, makeWrapper, qtbase
|
2016-03-04 23:05:48 +01:00
|
|
|
}:
|
2011-07-10 22:17:44 +02:00
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
mkDerivation rec {
|
2016-12-18 22:48:54 +01:00
|
|
|
name = "stellarium-${version}";
|
2018-07-05 00:24:22 +02:00
|
|
|
version = "0.18.1";
|
2011-07-10 22:17:44 +02:00
|
|
|
|
2018-06-24 20:26:58 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stellarium";
|
|
|
|
repo = "stellarium";
|
|
|
|
rev = "v${version}";
|
2018-07-05 00:24:22 +02:00
|
|
|
sha256 = "0srwi08azzzayf50dr4dr1zcdcc8hwribzv7xvb7hbp6xp51c813";
|
2011-07-10 22:17:44 +02:00
|
|
|
};
|
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2016-07-22 22:21:17 +02:00
|
|
|
|
2016-03-04 23:05:48 +01:00
|
|
|
buildInputs = [
|
2018-02-24 14:12:44 +01:00
|
|
|
freetype libpng libGLU_combined openssl libiconv qtscript qtserialport qttools
|
2018-06-24 20:26:58 +02:00
|
|
|
qtmultimedia qtlocation qtbase makeWrapper
|
2016-03-04 23:05:48 +01:00
|
|
|
];
|
2011-07-10 22:17:44 +02:00
|
|
|
|
2018-06-24 20:26:58 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/stellarium \
|
|
|
|
--prefix QT_PLUGIN_PATH : "${qtbase}/lib/qt-5.${lib.versions.minor qtbase.version}/plugins"
|
|
|
|
'';
|
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
meta = with lib; {
|
2012-10-19 10:19:41 +02:00
|
|
|
description = "Free open-source planetarium";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://stellarium.org/;
|
2017-05-17 21:26:11 +02:00
|
|
|
license = licenses.gpl2;
|
2011-07-14 22:53:30 +02:00
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
platforms = platforms.linux; # should be mesaPlatforms, but we don't have qt on darwin
|
2017-11-19 12:01:15 +01:00
|
|
|
maintainers = with maintainers; [ peti ma27 ];
|
2011-07-10 22:17:44 +02:00
|
|
|
};
|
|
|
|
}
|