Skip to content
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

Xow: libusb buggy #135678

Closed
2 tasks done
sevenautumns opened this issue Aug 25, 2021 · 6 comments
Closed
2 tasks done

Xow: libusb buggy #135678

sevenautumns opened this issue Aug 25, 2021 · 6 comments

Comments

@sevenautumns
Copy link
Contributor

Checklist
Project name

nix search name: xow

Notify maintainers

maintainers: @jansol

Note for maintainers

Xow itself is not out-of-date, but the used libusb is known to be buggy.
There are multiple reports of high cpu usage which can be fixed by using the latest libusb:

I was able to use the official libusb repo within a flake for circumventing the CPU issue
sevenautumns/xow@5e469a3

@Mindavi Mindavi added the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Aug 25, 2021
@Mindavi
Copy link
Contributor

Mindavi commented Aug 25, 2021

This depends on upstream releasing 1.0.25, which they said they'd do soon-ish. So I guess it's best to wait for that? I don't think the patch would apply cleanly, but haven't tried.

@sevenautumns
Copy link
Contributor Author

I see, then I'll have to use my patch until then.

For others who might run into this problem.
If you are using flakes you may use my repo as an input

{ inputs = { libusb.url = "github:steav005/xow/0fe9cd9"; };

And override the used libusb (but only for xow)

{
  nixpkgs.config.packageOverrides = pkgs: {
    xow = pkgs.xow.overrideAttrs (orig: {
      version = "pre-1.0.25";
      buildInputs = [ inputs.libusb.packages.x86_64-linux.libusb ];
    });
  };
}

This way only the used libusb is touched

@Mindavi
Copy link
Contributor

Mindavi commented Dec 2, 2021

They are getting close to a release: libusb/libusb#777

@ttrei
Copy link
Contributor

ttrei commented Feb 8, 2022

libusb-1.0.25 was released

https://github.com/libusb/libusb/releases/tag/v1.0.25

Mindavi added a commit to Mindavi/nixpkgs that referenced this issue Feb 10, 2022
Mindavi added a commit to Mindavi/nixpkgs that referenced this issue Feb 10, 2022
@Mindavi
Copy link
Contributor

Mindavi commented Feb 10, 2022

I made a PR, but haven't done any testing yet. If anyone has some spare time, testing would be appreciated.

@Mindavi
Copy link
Contributor

Mindavi commented Mar 29, 2022

#160839

Update was released and packaged. Hopefully this solves your issue and the need to carry your own overlay/patches. Reopen if there's still issues (you may have to wait until it's through staging).

@Mindavi Mindavi closed this as completed Mar 29, 2022
@Mindavi Mindavi removed the 2.status: wait-for-upstream Waiting for upstream fix (or their other action). label Mar 29, 2022
ttrei added a commit to ttrei/dotfiles that referenced this issue Dec 8, 2022
Followed this guide:
https://dee.underscore.world/blog/home-manager-flakes/

But I don't understand where to put the override:
NixOS/nixpkgs#135678 (comment)

Build:

apply-users.sh
cd /home/reinis/dotfiles/nix/home-manager/reinis
nixFlakes build '.#homeConfigurations."reinis@localhost".activationPackage'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants