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
g810-led: init at 0.4.2 #92119
g810-led: init at 0.4.2 #92119
Conversation
35554f0
to
ba834bb
Compare
ba834bb
to
4fea26f
Compare
71280c5
to
e879096
Compare
@GrahamcOfBorg eval |
@jonringer This needs a reviewer and I am not sure who to ping, can you suggest someone or take a look yourself? |
e879096
to
240eb90
Compare
@GrahamcOfBorg eval |
ln -s \./g810-led $out/bin/g513-led | ||
ln -s \./g810-led $out/bin/g610-led | ||
ln -s \./g810-led $out/bin/g815-led | ||
ln -s \./g810-led $out/bin/g910-led |
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.
Why ln -s
and not cp
? Or install
?
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.
So we don't waste space having the same binary multiple times, this is also how it's done in the original makefile: https://github.com/MatMoul/g810-led/blob/master/makefile
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.
It would have been ideal if you'd patch upstream's makefile and make it use PREFIX
properly and then use their makefile as is. The lines here are wrong:
https://github.com/MatMoul/g810-led/blob/5ee810a520f809e65048de8a8ce24bac0ce34490/makefile#L55-L74
They should use $(PREFIX)
there instead of $(DESTDIR)/usr
- and it's the default value of $(PREFIX)
according to:
https://github.com/MatMoul/g810-led/blob/5ee810a520f809e65048de8a8ce24bac0ce34490/makefile#L13
Could you contact upstream about it?
240eb90
to
5be3578
Compare
Closing because I am not using the package anymore and don't have the time to maintain it. |
Motivation for this change
Add g810-led package. It is an LED controller for Logitech keyboards and can be used to set custom colors for any keys and also supports multiple animated effects.
Things done
Built and tested with Logitech G910.
I also created a module for g810-led, which allows for setting a color profile via nixos configuration: #92124
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)