Subject: [bug#67727] My first package: libsurvive

From: Tobias Alexandra Platen <[email-masked]>
Date: Sat, 09 Dec 2023 13:14:02 +0100

I've tried to follow the rules documented in[1] and run guix lint and
currenty dont know how to fix the warnings. I made the release and
pushed it to codeberg.

gnu/packages/hardware.scm:1051:6: warning: no valid tags found for
libsurvive
gnu/packages/hardware.scm:1051:6: [email-masked]: updater 'generic-
git' failed to find upstream releases
gnu/packages/hardware.scm:1051:6: [email-masked]: scheduled
Software Heritage archival

[1] https://guix.gnu.org/manual/devel/en/html_node/Contributing.html
From 0e6cda8957e4b4f37187dcda5cace66602eb8401 Mon Sep 17 00:00:00 2001
From: Tobias Platen <[email-masked]>
Date: Sat, 9 Dec 2023 12:53:00 +0100
Subject: [PATCH 1/1] gnu: Add libsurvive

---
 gnu/packages/hardware.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 59b95ab7c8..fdbd21a018 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -38,6 +38,7 @@ (define-module (gnu packages hardware)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages avahi)
+  #:use-module (gnu packages algebra)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
@@ -1049,6 +1050,33 @@ (define-public openhmd
 technology, such as head mounted displays with built in head tracking.")
     (license license:boost1.0)))
 
+(define-public libsurvive
+  (package
+    (name "libsurvive")
+    (version "2023.12")
+    (source
+      (origin ;;TODO: make release
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://codeberg.org/LibreVR/libsurvive")
+              (recursive? #t)
+              (commit "v2023.12.rc0"))) ;; make a final release this year
+        (file-name (git-file-name name version))
+        (sha256 (base32 "0fkdgvpm987yl5q6yq0979cfj99ffi6k0dpmddlpxfm2rngn85r5"))))
+    (build-system cmake-build-system)
+    (arguments (list #:tests? #f)) ;; no tests in this version
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list hidapi eigen eudev))
+    (home-page "https://codeberg.org/LibreVR/libsurvive")
+    (synopsis "Lighthouse Tracking for LibreVR")
+    (description "Libsurvive is a set of tools and libraries that enable Lighthouse
+Tracking on various devices, including HTC Vive and the well known Valve Index.
+It currently supports both SteamVR 1.0 and SteamVR 2.0 generation of devices,
+future versions will support more hardware and the survive_link protocol.")
+    (license license:expat)))
+
 (define-public openrgb
   (package
     (name "openrgb")
-- 
2.39.2

From 0e6cda8957e4b4f37187dcda5cace66602eb8401 Mon Sep 17 00:00:00 2001
From: Tobias Platen <[email-masked]>
Date: Sat, 9 Dec 2023 13:01:04 +0100
Subject: [PATCH 0/1] *** SUBJECT HERE ***

*** BLURB HERE ***

Tobias Platen (1):
  gnu: Add libsurvive

 gnu/packages/hardware.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

base-commit: 61f2d84e75c340c2ba528d392f522c51b8843f34
-- 
2.39.2