XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

envision: only install runtime deps during install

Signed-off-by: Shiloh Fen <shiloh@shilohfen.com>

Shiloh Fen ebf8e7c2 7e91d46b

+22 -15
+22 -15
src/atomic-xr/envision.nu
··· 6 6 7 7 use std log 8 8 9 - export def install [] { 9 + const runtime_deps = { 10 + xr: [openxr-libs openvr-api] 11 + monado: [ 12 + # TODO: Is there a way to build Envision that doesn't require all of these at runtime? 13 + libuvc 14 + openhmd 15 + opencv 16 + onnxruntime 17 + librealsense 18 + opencv-video 19 + ] 20 + } 21 + 22 + export def install [ 23 + --no-monado (-m) # Don't install runtime deps for Monado 24 + ] { 25 + let deps = $runtime_deps.xr | if not $no_monado { 26 + append $runtime_deps.monado 27 + } else {$in} 28 + 29 + ensure-host-packages $deps 30 + 10 31 distrobox create envision --no-entry -Y -i registry.fedoraproject.org/fedora-toolbox:latest 11 32 distrobox enter envision -- sudo dnf install -y nu 12 33 upgrade ··· 50 71 cd $repo 51 72 } 52 73 git switch --detach (git tag -l --sort=v:refname | lines | last) 53 - 54 - ensure-host-packages [ 55 - openxr-libs 56 - openvr-api 57 - 58 - # Monado 59 - # TODO: Is there a way to build Envision that doesn't require all of these at runtime? 60 - libuvc 61 - openhmd 62 - opencv 63 - onnxruntime 64 - librealsense 65 - opencv-video 66 - ] 67 74 68 75 [ 69 76 "Actions=BuildMode;"