@@ -0,0 +1,48 @@
1+{
2+ mkDerivation, lib, fetchgit,
3+ extra-cmake-modules,
4+
5+ kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio,
6+ knewstuff, kplotting, kwidgetsaddons, kxmlgui,
7+
8+ qtx11extras, qtwebsockets,
9+
10+ eigen, zlib,
11+
12+ cfitsio, indilib, xplanet
13+}:
14+
15+mkDerivation {
16+ name = "kstars";
17+
18+ src = fetchgit {
19+ url = "https://anongit.kde.org/kstars.git";
20+ rev = "7acc527939280edd22823371dc4e22494c6c626a";
21+ sha256 = "1n1lgi7p3dj893fdnzjbnrha40p4apl0dy8zppcabxwrb1khb84v";
22+ };
23+
24+ nativeBuildInputs = [ extra-cmake-modules kdoctools ];
25+ buildInputs = [
26+ kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio
27+ knewstuff kplotting kwidgetsaddons kxmlgui
28+
29+ qtx11extras qtwebsockets
30+
31+ eigen zlib
32+
33+ cfitsio indilib xplanet
34+ ];
35+
36+ meta = with lib; {
37+ description = "Virtual planetarium astronomy software";
38+ homepage = "https://kde.org/applications/education/org.kde.kstars";
39+ longDescription = ''
40+ It provides an accurate graphical simulation of the night sky, from any location on Earth, at any date and time.
41+ The display includes up to 100 million stars, 13.000 deep-sky objects, all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites.
42+ For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations.
43+ '';
44+ license = licenses.gpl2;
45+ platforms = platforms.linux;
46+ maintainers = with maintainers; [ timput ];
47+ };
48+}