Subject: [PATCH 8/9] gnu: Add calcmysky.

From: Cairn <[email-masked]>
Date: Thu, 13 Oct 2022 05:42:49 +0000

* gnu/packages/astronomy.scm (calcmysky): New variable.
---
 gnu/packages/astronomy.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 8c53611427..72e923e895 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2021, 2022 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2021 Greg Hogan <[email-masked]>
 ;;; Copyright © 2021 Foo Chuan Wei <[email-masked]>
+;;; Copyright © 2022 Cairn <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -727,6 +728,34 @@ (define-public stackistry
 deconvolution).  Such post-processing is not performed by Stackistry.")
      (license license:gpl3+)))

+(define-public calcmysky
+  (package
+    (name "calcmysky")
+    (version "0.1.0")
+    (source (origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/10110111/CalcMySky")
+                   (commit (string-append "v" version))))
+             (file-name (git-file-name name version))
+             (sha256
+              (base32
+               "13wk73c0xyh6c1zpxjzny987x0qdy1gcqy2y5r5a5hiqx4fz3lfj"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "-DQT_VERSION=6")))
+    (inputs
+     (list qtbase
+           glm
+           eigen))
+    (home-page "https://10110111.github.io/CalcMySky/")
+    (synopsis "Simulator of light scattering by planetary atmospheres")
+    (description "CalcMySky is a software package that simulates scattering
+of light by the atmosphere to render daytime and twilight skies (without
+stars).  It consists of three parts: CalcMySky, ShowMySky and libShowMySky.")
+    (license license:gpl3)))
+
 (define-public stellarium
   (package
     (name "stellarium")
-- 

2.38.0