-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ultraleap-hand-tracking: init #310138
base: master
Are you sure you want to change the base?
ultraleap-hand-tracking: init #310138
Conversation
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title should include the version of the package (3.4.1)
As there are multiple packages here with different versions each, I don't think that'll be needed here |
Whoops, I thought the versions of all the ultraleap packages were synchronized. You're right; that isn't the case. Disregard that comment :) |
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
7a61334
to
ef367de
Compare
Result of 1 package blacklisted:
4 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add release notes entries for the new module and for the update to the monado module.
, systemdLibs | ||
, ultraleap-hand-tracking-service | ||
}: | ||
stdenv.mkDerivation (finalAttrs: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might make sense to use stdenvNoCC
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are already pulling in stdenv.cc.cc
in buildInputs, so we wouldn't really gain anything from using stdenvNoCC
here.
installPhase = '' | ||
runHook preInstall | ||
|
||
install -d $out/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason you're using install -d
+ cp
instead of either mkdir -p
+ cp
or a single install
command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really any reason. I personally like using install
where convenient, but as we are copying a lot of files around, cp -Tr
was a better choice here IMO.
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: strictDeps = true
is also probably a good habit.
38f1712
to
3e5dbfa
Compare
During NixCon 2024 I was able to try this module with @MatthewCroughan's Ultraleap Motion Camera and while the control panel recognized the device, it was unable to actually open the camera stream. When keeping the service stopped, I was able to get a single frame of its camera using guvcview, before it errored out. When the service is running it replaces the Perhaps it is and this is just a permission issue? I sadly didn't have enough time to debug this. |
3e5dbfa
to
89e223c
Compare
Given the nontrivial contents of the ultraleap license, it probably deserves a nixpkgs config option to indicate acceptance. See #341095 for an example of how to do that. Documents that might need to be tracked:
|
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
pkgs/by-name/ul/ultraleap-hand-tracking-control-panel/package.nix
Outdated
Show resolved
Hide resolved
89e223c
to
53d9c46
Compare
53d9c46
to
dcfd7a9
Compare
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
dcfd7a9
to
7a7d128
Compare
Description of changes
Closes #292624
This packages the UltraLeap hand tracking SDK for Linux.
See https://docs.ultraleap.com/linux/
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.