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
hidapi: fix cross build #108025
hidapi: fix cross build #108025
Conversation
@@ -1,5 +1,7 @@ | |||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb1 |
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.
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb1 | |
{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, udev, libusb1 |
nativeBuildInputs = [ autoreconfHook pkgconfig ]; | ||
nativeBuildInputs = [ | ||
autoreconfHook | ||
pkgconfig |
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.
pkgconfig | |
pkg-config |
buildInputs = [ ] | ||
++ stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ]; |
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.
buildInputs = [ ] | |
++ stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ]; | |
buildInputs = stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ]; |
ok, this needs to be added conditionally |
pushed f651423 to staging-next |
Thanks for the fix. |
I pushed a cleanup PR on top, making this not only conditional on cross in #108044, and addressing the PR feedback. |
Motivation for this change
Running ofborg to assess the amount of rebuilds. Might need to make this a cross-only patch.
Things done
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)