2020-05-05 19:38:28 +01:00
|
|
|
{
|
2020-11-28 17:07:35 +00:00
|
|
|
lib, mkDerivation, extra-cmake-modules, fetchurl,
|
2020-05-05 19:38:28 +01:00
|
|
|
|
|
|
|
kconfig, kdoctools, kguiaddons, ki18n, kinit, kiconthemes, kio,
|
2020-11-28 17:08:02 +00:00
|
|
|
knewstuff, kplotting, kwidgetsaddons, kxmlgui, knotifyconfig,
|
2020-05-05 19:38:28 +01:00
|
|
|
|
2020-11-28 17:08:02 +00:00
|
|
|
|
|
|
|
qtx11extras, qtwebsockets, qtkeychain, libsecret,
|
2020-05-05 19:38:28 +01:00
|
|
|
|
|
|
|
eigen, zlib,
|
|
|
|
|
2020-12-25 21:53:24 +00:00
|
|
|
cfitsio, indilib, xplanet, libnova, libraw, gsl, wcslib, stellarsolver
|
2020-05-05 19:38:28 +01:00
|
|
|
}:
|
|
|
|
|
2020-11-28 17:07:35 +00:00
|
|
|
mkDerivation rec {
|
2020-11-03 00:34:55 +00:00
|
|
|
pname = "kstars";
|
2021-01-19 18:56:23 +00:00
|
|
|
version = "3.5.1";
|
2020-11-03 00:34:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-25 21:53:24 +00:00
|
|
|
url = "mirror://kde/stable/kstars/kstars-${version}.tar.xz";
|
2021-01-19 18:56:23 +00:00
|
|
|
sha256 = "sha256-gf+yaXiYQFuO1/nvdP6OOuD4QrRtPAQTwQZAbYNKxUU=";
|
2020-05-05 19:38:28 +01:00
|
|
|
};
|
2020-11-03 00:34:55 +00:00
|
|
|
|
|
|
|
patches = [
|
2020-12-25 21:53:24 +00:00
|
|
|
# Patches ksutils.cpp to use nix store prefixes to find program binaries of
|
|
|
|
# indilib and xplanet dependencies. Without the patch, Ekos is unable to spawn
|
|
|
|
# indi servers for local telescope/camera control.
|
|
|
|
./fs-fixes.patch
|
2020-11-03 00:34:55 +00:00
|
|
|
];
|
|
|
|
|
2020-11-28 17:07:35 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2020-05-05 19:38:28 +01:00
|
|
|
buildInputs = [
|
|
|
|
kconfig kdoctools kguiaddons ki18n kinit kiconthemes kio
|
2020-11-28 17:08:02 +00:00
|
|
|
knewstuff kplotting kwidgetsaddons kxmlgui knotifyconfig
|
2020-05-05 19:38:28 +01:00
|
|
|
|
2020-11-28 17:08:02 +00:00
|
|
|
qtx11extras qtwebsockets qtkeychain libsecret
|
2020-05-05 19:38:28 +01:00
|
|
|
|
|
|
|
eigen zlib
|
|
|
|
|
2020-12-25 21:53:24 +00:00
|
|
|
cfitsio indilib xplanet libnova libraw gsl wcslib stellarsolver
|
2020-11-03 00:34:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DINDI_NIX_ROOT=${indilib}"
|
2020-12-25 21:53:24 +00:00
|
|
|
"-DXPLANET_NIX_ROOT=${xplanet}"
|
2020-05-05 19:38:28 +01:00
|
|
|
];
|
|
|
|
|
2020-11-28 17:07:35 +00:00
|
|
|
meta = with lib; {
|
2020-05-05 19:38:28 +01: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;
|
2020-12-25 21:53:24 +00:00
|
|
|
maintainers = with maintainers; [ timput hjones2199 ];
|
2020-05-05 19:38:28 +01:00
|
|
|
};
|
|
|
|
}
|