Repository navigation
Conversation
|
I finally had delivery of a VITURE Pro today, after being lost, but I've tested my Flake with the glasses, and it does seem to work - about to test mouse control shortly. |
|
The long-term steps would be to upstream the derivation (+ Breezy) to Nixpkgs, as well as a Nix module, and a CI workflow for this repo (+ Breezy). |
489b7fc to
fba3fa3
Compare
519285a to
77822f9
Compare
aa811c1 to
8140a66
Compare
|
@shymega can you let me know if this is ready? Also can you have another Nix user test and sign off on it? |
|
As for another Nix user I'm here. I actually already put together a Nix package for the driver but this one looks further along than mine so will test. Will post my findings here in the next few days. |
|
Okay so it builds and I can install the driver but I seem to be having some issues connecting to my Viture Pro glasses. I get the following in the xrDriver log. 2025-04-28 22:02:40.853 Project version: 1.1.0 In kernel logs I have this when I plug in the glasses. [ 187.344812] usb 2-1: new full-speed USB device number 7 using xhci_hcd So the glasses are being recognised by the kernel. For refernce this is NixOS unstable running kernel 6.12.24. |
|
You might want to try rebasing this branch, as main is on 2.x and may include a fixing change for that. But first you could try to see if this persists after a restart. And try not having the glasses plugged in on boot. |
|
Yes, this isn't a problem with my package. I did raise it with @wheaney over Discord, but the solution isn't clear yet. Have you put the udev rules in your |
|
I'll rebase this now. |
|
Tried a restart and adding the udev rules but still getting the same output for now. |
8140a66 to
4dabde1
Compare
|
@deephack1982 Try now :-) I'm also working on a Guix package, if that's of interest to anyone following this thread. |
|
New one gives me a build failure with the following make output. [ 58%] Building C object CMakeFiles/xrDriver.dir/src/ipc.c.o Tested and this is present on wheaneys main branch if I do a basic cmake and make so nothing up with the flake. 2.0.5 tag builds cleanly however. |
|
Yeah, the Flake builds from the Git repo, but I didn't have any issues building. |
|
How did you invoke the Flake? |
|
I allow the direnv to load and then issue the nix-build command in the root. |
|
Ah, I can reproduce it now. It was cached. Try building from |
|
That branch builds fine but the driver output is still the same. Connection attempt fails and then it retries in a loop. |
|
Quick note by the way as I was looking into the udev rules and how to package them. As per this thread it seems that any package containing $out/lib/udev/rules.d/ will be picked up by the system automatically. Actually not quite automatically, you need to specify sevices.udev.package = [ mypackage ]; but anyway. https://discourse.nixos.org/t/how-to-create-files-in-the-etc-udev-rules-d-directory/11929/13 |
I found this happened for me too, but not on the first connection cycle of my VITURE Pros. |
Ah, that's good to hear. So the way I've packaged it makes this seamless. |
So I am testing this out and am using the config listed by @shymega. You can confirm looking here... https://github.com/seanybaggins/nix-home/commit/9e0ba8988d764cf1ea5f407d15d781d1f4fda4e1 I am not sure I am observing successful behavior. When wearing the glasses, the screen is always appearing directly in front of me. Looks like I dont have a manafest file at |
|
@seanybaggins This is expected behaviour. XRLinuxDriver doesn't implement multiple screens - Breezy does, but this is a separate issue. What you're seeing is a functioning Flake for XRLinuxDriver, and therefore it can now be merged, I am happy to say. You can test the state by running Breezy is more complex, as we'll need to build from source rather than using binaries, and this requires a few hacks. I am working on this separately. If @wheaney is happy to merge this MR, I can then upstream my Nixpkgs branch to Nixpkgs, and it'll be backported to 25.05. |
wheaney
left a comment
There was a problem hiding this comment.
Please update the README with instructions for Nix setup, also rebase and update any version numbers.
c6cd02d to
17a67cd
Compare
wheaney
left a comment
There was a problem hiding this comment.
Please also update the README with Nix instructions.
17a67cd to
621128a
Compare
fec340d to
888dcef
Compare
|
If it helps and if it counts as independent testing, I successfully configured this on NixOS today, adding it (shymega's fork, |
|
@shymega is this ready to go? |
558a065 to
b9f38ee
Compare
|
@wheaney Kind of. I had some interest in my Discord DMs, but no testing results yet. This PR needs CI and README implementation, but I'd like to see testing first. |
|
I had https://github.com/shymega/XRLinuxDriver/tree/shymega/nix-flake-support in my flake inputs and it's broken since the refactoring. Something about trying to build something twice...I don't use it that much so I could not look into the problem yet and I did not save the error, sorry. It's entirely possible that I am doing something wrong. Could you add an example to the readme? edit: recovered the error |
|
This error looks related to my recent rebasing against main. I will investigate... I'm starting to think it'd be easier to upstream this to Nixpkgs, and then access that derivation from this repo. The submodules both here and in Breezy add a level of complexity that Nix doesn't currently cope well with currently. |
b9f38ee to
470fc26
Compare
|
OK, something in the submodule changed. Fixed that now. @signaleleven Can you try again? |
470fc26 to
2042249
Compare
2042249 to
3b52279
Compare
|
Ready for review and testing. I used AI to quickly wrap this up, as it's been pending for a long time. |
b4cdbc0 to
55b1102
Compare
4ace8e4 to
5426855
Compare
This commit consists of the following changes: - `default.nix`/`shell.nix` This allows for legacy Nix tooling like `nix-build`/`nix-shell` to work. - `flake.nix` This is for the (new) Nix Flake support. - `flake.lock` As above, but for tracking Flake inputs. - `.envrc` This allows for a fully self-contained developer environment to be setup with Nix. - `.nix/XRLinuxDriver/default.nix` This derives from @johnrizzo1's Nix package for the Nix Flake, which were REALLY helpful for me. Closes: wheaney#38 Co-authored-by: John Rizzo <johnrizzo1@gmail.com> Assisted-by: Claude <noreply@anthropic.com>
Adds jobs to build the package and validate the flake on PRs/pushes, plus a scheduled job to update the flake inputs weekly, pushing straight to main. Assisted-by: Claude <noreply@anthropic.com>
Documents the flake's outputs, inputs, the SSH-submodule fetch caveat, and the CI update job. Linked from docs/index.md. Assisted-by: Claude <noreply@anthropic.com>
Covers installing the package as a flake input or a plain tarball, each either imperatively via nix profile/nix-env or via the overlay. Assisted-by: Claude <noreply@anthropic.com>
5426855 to
54d1fc8
Compare
This commit consists of the following changes:
default.nix/shell.nixThis allows for legacy Nix tooling like
nix-build/nix-shellto work.flake.nixThis is for the (new) Nix Flake support.
flake.lockAs above, but for tracking Flake inputs.
.envrcThis allows for a fully self-contained developer environment to be
setup with Nix.
nix/default.nixThis is the main package derivation. Both this repo & Nixpkgs are
derived from the same codebase.
Closes: #38