commit f650a10c0358aabea7cb49d60b2c1dc660cecab2 parent 147311416d0432c01f1b6cf9a79b12177db18557 Author: Vineet Kumar <git@vineetk.net> Date: Wed, 25 Nov 2026 01:20:54 +0100 packages/vr: add (lib)survive Diffstat:
| M | epistemia/packages/vr.scm | | | 45 | ++++++++++++++++++++++++++++++++++++++++++++- |
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/epistemia/packages/vr.scm b/epistemia/packages/vr.scm @@ -1,9 +1,47 @@ (define-module (epistemia packages vr) #:use-module (guix packages) + #:use-module (guix build-system cmake) + #:use-module (guix build-system gnu) + #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module ((guix licenses) :prefix license:) + #:use-module (guix utils) + #:use-module (gnu packages algebra) + #:use-module (gnu packages compression) + #:use-module (gnu packages gl) #:use-module (gnu packages graphics) + #:use-module (gnu packages libusb) + #:use-module (gnu packages maths) #:use-module (gnu packages sdl)) +(define-public survive + (package + (name "survive") + (version "44b1e2f0cb95e5697bc0b86f58fd8520a813b713") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/collabora/libsurvive") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kpp5lxyz10c5sgsgrb0igny9d737byh4w4m626zxngm2nvlqqgv")))) + (build-system cmake-build-system) + (arguments (list #:tests? #f)) + (inputs (list zlib-ng + libusb + freeglut + eigen + openblas)) + (home-page "https://github.com/collabora/libsurvive") + (synopsis "Open Source Lighthouse Tracking System") + (description "\ +Libsurvive is a set of tools and libraries that enable 6 dof tracking on lighthouse and vive based systems that is completely open source and can run on any device. It currently supports both SteamVR 1.0 and SteamVR 2.0 generation of devices and should support any tracked object commercially available. + +Since the focus is on tracking; it does not independently run the HMD. For an open souce stack that does that see monado") + (license license:x11))) + (define-public monado-git (package (inherit monado) @@ -18,6 +56,11 @@ (sha256 (base32 "0q4ipjx779ifza0z6wccvh1b36z29xm5lxlbd1iv00iqlj4na4ws")))) + (arguments + (substitute-keyword-arguments (package-arguments (@@ (gnu packages machine-learning) ggml)) + ((#:configure-flags flags #~'()) + #~(append #$flags (list "-DXRT_BUILD_DRIVER_SURVIVE=ON"))))) (inputs (modify-inputs (package-inputs monado) - (append sdl2))))) + (append sdl2 + survive)))))