Skip to content

nix: rename can -> python-can, removed unused canopen#41

Open
thefloweringash wants to merge 1 commit intomainfrom
rename-can
Open

nix: rename can -> python-can, removed unused canopen#41
thefloweringash wants to merge 1 commit intomainfrom
rename-can

Conversation

@thefloweringash
Copy link
Copy Markdown
Collaborator

PR check-list

  • Branch has a clean commit history
  • Additional tests are included, if changing behaviors/core code that is testable.
  • Proper Copyright + License headers added to applicable files (Generally, we stick to "The ZMK Contributors" for copyrights to help avoid churn when files get edited)
  • Pre-commit used to check formatting of files, commit messages, etc.
  • Includes any necessary documentation changes.

canopen was accidentally an alias of python-can (née can), and had no
effect on the build.
Comment thread nix/zmk.nix
# from zephyr/scripts/requirements-base.txt
packageOverrides = pyself: pysuper: {
can = pysuper.can.overrideAttrs (_: {
python-can = pysuper.python-can.overrideAttrs (_: {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed in order to bump nixpkgs, as the old can alias has been removed. 👍

Comment thread nix/zmk.nix
Comment on lines 21 to 22
doCheck = false;
doInstallCheck = false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be great to upstream this (or disable relevant tests in nixpkgs), as nixpkgs also doesn't want flaky packages.

That'd mean you no longer need an overridden python scope.

Out-of-scope for this PR, I'm just noting for the record.

antoineco added a commit to antoineco/dotfiles that referenced this pull request Apr 22, 2026
Commit 10ab730 accidentally broke the
Glove80 build, because the 'can' alias for 'python-can' no longer
exists[1] in the updated nixpkgs revision.

[1]: moergo-sc/zmk#41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants