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

pythonPackages.hidapi: enable on darwin #63695

Merged
merged 1 commit into from Jun 24, 2019

Conversation

arcnmx
Copy link
Member

@arcnmx arcnmx commented Jun 23, 2019

Motivation for this change

Package is cross-platform, and only uses libusb on linux and bsd.

Is the with too messy?

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@FRidh
Copy link
Member

FRidh commented Jun 23, 2019

There is no reason for using it, so yes.

@arcnmx
Copy link
Member Author

arcnmx commented Jun 23, 2019

There is no reason for using it, so yes.

Assuming this was in response to with, so changed.
(is there ever actually a "reason" to use it though, beyond conventions or personal taste thresholds of line length and brevity?)

@arcnmx
Copy link
Member Author

arcnmx commented Jun 23, 2019

Hm, causing linux rebuilds presumably because of the propagatedBuildInputs list getting reordered. Does it make sense to shuffle that around to save some rebuilds?

{
  propagatedBuildInputs =
    stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ] ++
    stdenv.lib.optionals stdenv.isDarwin [ darwin.IOKit darwin.apple_sdk.frameworks.CoreFoundation ] ++
    [ cython ];
}

EDIT: applied, also is ++ etc the preferred style or?

@matthewbauer matthewbauer merged commit b24d5e4 into NixOS:master Jun 24, 2019
@arcnmx arcnmx deleted the python-hidapi-darwin branch June 24, 2019 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants