From 4fad3d122ba46c2451aae7094e2c7907323a04f4 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Mon, 2 Dec 2019 12:21:34 +0100 Subject: [PATCH 14/17] gnu: Add kstars. * gnu/packages/education.scm (kstars): New variable. diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 201d7c4f5e..c81feb2b3a 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -33,6 +33,7 @@ (define-module (gnu packages education) #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages algebra) + #:use-module (gnu packages astronomy) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages boost) @@ -64,6 +65,7 @@ (define-module (gnu packages education) #:use-module (gnu packages ocaml) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) + #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-web) @@ -1168,6 +1170,73 @@ (define-public kmplot minima, changing function parameters dynamically, and plotting derivatives and integral functions. +This package is part of the KDE education module.") + (license ;; GPL for programs, FDL for documentation + (list license:gpl2+ license:fdl1.2+)))) + +(define-public kstars + (package + (name "kstars") + (version "3.6.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://invent.kde.org/education/kstars/-/archive/stable-" version + "/kstars-stable-" version ".tar.gz")) + (sha256 + (base32 "0slrhlr1j8nhs033h7xjfblbs59n89588k48jk77apvc20fi3nav")))) + (build-system qt-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "ctest" "-E" "(TestKSUserDB|TestKSPaths)"))))))) + (native-inputs + (list eigen + extra-cmake-modules + kdoctools + pkg-config)) + (inputs + (list ;; TODO: cfitsio building this backend fails + kauth + kconfig + kcrash + ki18n + kio + knewstuff + knotifications + knotifyconfig + kplotting + kwidgetsaddons + kxmlgui + libraw + mesa + oxygen-icons ;; default icon set + qtbase-5 + qtdatavis3d + qtdeclarative-5 + qtkeychain + qtlocation + qtquickcontrols2-5 + qtsvg-5 + qtwebsockets-5 + wcslib + xplanet + zlib)) + ;; TODO: INDI http://www.indilib.org + ;; TODO: OpenMP # Needed for LibRaw + ;; TODO: AstrometryNet + (home-page "https://kde.org/applications/education/org.kde.kstars") + (synopsis "Desktop planetarium") + (description "KStars provides an accurate graphical simulation of the +night sky, from any location on Earth, at any date and time. The display +includes 130,000 stars, 13,000 deep-sky objects, all 8 planets, the Sun and +Moon, and thousands of comets and asteroids. It includes tools for +astronomical calculations and can control telescopes and cameras. + This package is part of the KDE education module.") (license ;; GPL for programs, FDL for documentation (list license:gpl2+ license:fdl1.2+)))) -- 2.38.1