2020-05-15 21:57:56 +00:00
|
|
|
{
|
2020-12-25 13:55:36 +00:00
|
|
|
lib, mkDerivation, extra-cmake-modules, fetchurl,
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio,
|
2020-12-25 13:55:36 +00:00
|
|
|
knewstuff, kplotting, kwidgetsaddons, kxmlgui, knotifyconfig,
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
qtx11extras, qtwebsockets, qtkeychain, libsecret,
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
eigen, zlib,
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
cfitsio, indi-full, xplanet, libnova, libraw, gsl, wcslib, stellarsolver
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
mkDerivation rec {
|
2020-11-09 15:59:12 +00:00
|
|
|
pname = "kstars";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.5.4";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-29 15:07:52 +00:00
|
|
|
url = "mirror://kde/stable/kstars/kstars-${version}.tar.xz";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-JCdSYcogvoUmu+vB/vye+6ZMIJqVoScAKreh89dxoDU=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
2020-11-09 15:59:12 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2020-05-15 21:57:56 +00:00
|
|
|
buildInputs = [
|
|
|
|
kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio
|
2020-12-25 13:55:36 +00:00
|
|
|
knewstuff kplotting kwidgetsaddons kxmlgui knotifyconfig
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
qtx11extras qtwebsockets qtkeychain libsecret
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
eigen zlib
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
cfitsio indi-full xplanet libnova libraw gsl wcslib stellarsolver
|
2020-11-09 15:59:12 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# See https://bugs.kde.org/show_bug.cgi?id=439541
|
|
|
|
preConfigure = ''
|
|
|
|
rm po/de/docs/kstars/index.docbook
|
|
|
|
'';
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
cmakeFlags = [
|
2021-05-20 23:08:51 +00:00
|
|
|
"-DINDI_PREFIX=${indi-full}"
|
|
|
|
"-DXPLANET_PREFIX=${xplanet}"
|
2020-05-15 21:57:56 +00:00
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "Virtual planetarium astronomy software";
|
|
|
|
homepage = "https://kde.org/applications/education/org.kde.kstars";
|
|
|
|
longDescription = ''
|
|
|
|
It provides an accurate graphical simulation of the night sky, from any location on Earth, at any date and time.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
'';
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-05-15 21:57:56 +00:00
|
|
|
platforms = platforms.linux;
|
2020-12-29 15:07:52 +00:00
|
|
|
maintainers = with maintainers; [ timput hjones2199 ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|