-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
linuxPackages.hid-nintendo: init at 3.1 #108348
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
Conversation
04d0cd6
to
f5c5c4b
Compare
Can you please blacklist those kernels to produce less build failures? |
Result of 2 packages marked as broken and skipped:
3 packages failed to build:
15 packages built:
|
thanks for feedback. I'm not sure how to do this in the code. In some of the examples, I see we have an Trying this, and it didn't seem to work? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
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.
Seems to work for me with JoyCons.
SN30 pro+ in Switch mode did not work, but that's not an official controller, and it seems to be a known issue, so that's fine.
license = licenses.gpl2; | ||
maintainers = [ maintainers.rencire ]; | ||
platforms = platforms.linux; | ||
broken = builtins.elem kernel.version ["libre" "4.4" "4.9"]; |
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.
broken = builtins.elem kernel.version ["libre" "4.4" "4.9"]; | |
broken = stdenv.lib.versionOlder kernel.version "4.14"; |
Instead of restricting specific versions, you may want to use versionOlder
. linux-libre likely failed due to linux-libre being broken rather than due to an issue with the package, so it shouldn't be explicitly blocked.
@@ -0,0 +1,42 @@ | |||
# References: |
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.
May as well remove the references, they are generic Linux kernel module packing information rather than anything hid-nintendo specific.
license = licenses.gpl2; | ||
maintainers = [ maintainers.rencire ]; | ||
platforms = platforms.linux; | ||
broken = stdenv.lib.versionOlder kernel.version "4.14"; |
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.
broken = stdenv.lib.versionOlder kernel.version "4.14"; | |
broken = lib.versionOlder kernel.version "4.14"; |
See #108938.
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.
This would work too:
broken = stdenv.lib.versionOlder kernel.version "4.14"; | |
broken = versionOlder kernel.version "4.14"; |
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ]; | ||
installTargets = [ "modules_install" ]; | ||
|
||
meta = with stdenv.lib; { |
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.
meta = with stdenv.lib; { | |
meta = with lib; { |
license = licenses.gpl2; | ||
maintainers = [ maintainers.rencire ]; | ||
platforms = platforms.linux; | ||
broken = stdenv.lib.versionOlder kernel.version "4.14"; |
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.
This would work too:
broken = stdenv.lib.versionOlder kernel.version "4.14"; | |
broken = versionOlder kernel.version "4.14"; |
This lgtm, but you should update to 3.1 and squash the commits. |
@ofborg eval (GitHub fix your API) |
I can confirm that this evaluates and builds (on both |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Result of 6 packages marked as broken and skipped:
13 packages built:
|
Motivation for this change
Add dkms-hid-nintendo "out-of-tree" kernel module.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)configuration.nix
.boot.extraModulePackages = with config.boot.kernelPackages; [ hid-nintendo ];
modinfo
:nix path-info -S
before and after)