direwolf: fix dependency stuff - #484861
Conversation
It looks like there were some missing / incorrectly flagged dependencies
|
| avahi | ||
| udev | ||
| libcap | ||
| libgpiod |
There was a problem hiding this comment.
gpiod seems optional? https://github.com/wb2osz/direwolf/blob/a231971a652bfb574a4bae9a5d875fbce53d2267/CMakeLists.txt#L347
Seems like it could be being a boolean and defaulted to false
| ] | ||
| ++ lib.optionals stdenv.hostPlatform.isLinux [ | ||
| alsa-lib | ||
| avahi |
There was a problem hiding this comment.
avahi seems optional as well https://github.com/wb2osz/direwolf/blob/a231971a652bfb574a4bae9a5d875fbce53d2267/CMakeLists.txt#L389
| buildInputs = [ | ||
| hidapi | ||
| libusb1 | ||
| portaudio |
There was a problem hiding this comment.
isnt portaudio only required for darwin? https://github.com/wb2osz/direwolf/blob/a231971a652bfb574a4bae9a5d875fbce53d2267/CMakeLists.txt#L403
There was a problem hiding this comment.
For the BSDs too IIUC. But my understanding is that it also works on linux, and if it isn't used it won't get linked anyway.
| espeak | ||
| ]; | ||
| buildInputs = [ | ||
| hidapi |
There was a problem hiding this comment.
Should CUSTOM_EXTERNAL_DIR (https://github.com/wb2osz/direwolf/blob/a231971a652bfb574a4bae9a5d875fbce53d2267/CMakeLists.txt#L78) be set? since it seems like direwolf's embedded its own hidapi source: https://github.com/wb2osz/direwolf/tree/1.8.1/external/hidapi
| hidapi | ||
| libusb1 | ||
| portaudio | ||
| sndio |
There was a problem hiding this comment.
isnt sndio specific to darwin and openbsd? https://github.com/wb2osz/direwolf/blob/a231971a652bfb574a4bae9a5d875fbce53d2267/CMakeLists.txt#L396C1-L396C7
|
@Pandapip1 can you review: #498631 this should work similarly but honor the deps per platform. |
Should fix #479117 (comment)
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.