2020-05-05 20:38:28 +02:00
|
|
|
{
|
2020-11-03 01:34:55 +01:00
|
|
|
stdenv, extra-cmake-modules, fetchurl,
|
2020-05-05 20:38:28 +02:00
|
|
|
|
|
|
|
kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio,
|
2020-11-03 01:34:55 +01:00
|
|
|
knewstuff, kplotting, kwidgetsaddons, kxmlgui, wrapQtAppsHook,
|
2020-05-05 20:38:28 +02:00
|
|
|
|
|
|
|
qtx11extras, qtwebsockets,
|
|
|
|
|
|
|
|
eigen, zlib,
|
|
|
|
|
2020-11-03 01:34:55 +01:00
|
|
|
cfitsio, indilib, xplanet, libnova, gsl
|
2020-05-05 20:38:28 +02:00
|
|
|
}:
|
|
|
|
|
2020-11-03 01:34:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kstars";
|
|
|
|
version = "3.4.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://mirrors.mit.edu/kde/stable/kstars/kstars-${version}.tar.xz";
|
|
|
|
sha256 = "0j5yxg6ay6sic194skz6vjzg6yvrpb3gvypvs0frjrcjbsl1j4f8";
|
2020-05-05 20:38:28 +02:00
|
|
|
};
|
2020-11-03 01:34:55 +01:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./indi-fix.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
|
2020-05-05 20:38:28 +02:00
|
|
|
buildInputs = [
|
|
|
|
kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio
|
|
|
|
knewstuff kplotting kwidgetsaddons kxmlgui
|
|
|
|
|
|
|
|
qtx11extras qtwebsockets
|
|
|
|
|
|
|
|
eigen zlib
|
|
|
|
|
2020-11-03 01:34:55 +01:00
|
|
|
cfitsio indilib xplanet libnova gsl
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DINDI_NIX_ROOT=${indilib}"
|
2020-05-05 20:38:28 +02:00
|
|
|
];
|
|
|
|
|
2020-11-03 01:34:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-05-05 20:38:28 +02: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.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ timput ];
|
|
|
|
};
|
|
|
|
}
|