Subject: [PATCH v3] gnu: Add valeronoi.

From: phodina <[email-masked]>
Date: Mon, 27 Sep 2021 22:52:06 +0000

* gnu/packages/engineering.scm (valeronoi): New variable.

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 46622f3a1f..9dacc6c948 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2021 qblade <[email-masked]>
 ;;; Copyright © 2021 Gerd Heber <[email-masked]>
 ;;; Copyright © 2021 Guillaume Le Vaillant <[email-masked]>
+;;; Copyright © 2021 Petr Hodina <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -127,6 +128,7 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages openkinect)
+  #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xorg))

 (define-public librecad
@@ -1168,6 +1170,43 @@ educational use.  As such, there is an emphasis on capabilities that improve
 the 'showing the effect of'-style of operation.")
     (license license:gpl2+)))

+(define-public valeronoi
+(package
+  (name "valeronoi")
+  (version "0.1.4")
+  (source (origin
+            (method git-fetch)
+            (uri
+             (git-reference
+              (url "https://github.com/ccoors/Valeronoi")
+              (commit (string-append "v" version))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "1zp653bjqsyixa5j1pp9k12iqsl8dz72yyi38asxmcym1wngsjcd"))))
+  (build-system cmake-build-system)
+  (arguments
+    `(#:phases
+      (modify-phases %standard-phases
+       (replace 'check
+         (lambda* (#:key tests? #:allow-other-keys)
+           (when tests?
+             (invoke "./valeronoi-tests")))))))
+  (inputs `(("qtbase" ,qtbase-5)
+            ("qtsvg" ,qtsvg)
+            ("openssl" ,openssl)
+            ("libxkbcommon" ,libxkbcommon)
+            ("cgal" ,cgal)
+            ("gmp" ,gmp)
+            ("mpfr" ,mpfr)
+            ("boost" ,boost)))
+  (synopsis "WiFi mapping companion app for Valetudo")
+  (description "Valeronoi (Valetudo + Voronoi) is a companion for Valetudo
+for generating WiFi signal strength maps.  It visualizes them using a Voronoi
+diagram.")
+  (home-page "https://github.com/ccoors/Valeronoi")
+  (license license:gpl3+)))
+
 (define-public volk
   (package
     (name "volk")
--
2.32.0