pc-ble-driver: fix Darwin build

Propagate platform I/O dependencies (udev or IOKit)

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
Sirio Balmelli 2020-07-19 23:26:49 +02:00
parent 1c26e6baec
commit d6b3707c86
No known key found for this signature in database
GPG key ID: 0437A96EFE4C426E
2 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, git, cmake, catch2, asio, udev }:
{ stdenv, fetchFromGitHub, git, cmake, catch2, asio, udev, IOKit }:
stdenv.mkDerivation rec {
pname = "pc-ble-driver";
@ -16,7 +16,15 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ cmake git ];
buildInputs = [ catch2 asio udev ];
buildInputs = [ catch2 asio ];
propagatedBuildInputs = [
] ++ stdenv.lib.optionals stdenv.isDarwin [
IOKit
] ++ stdenv.lib.optionals stdenv.isLinux [
udev
];
meta = with stdenv.lib; {
description = "Desktop library for Bluetooth low energy development";

View file

@ -21419,7 +21419,9 @@ in
partio = callPackage ../development/libraries/partio {};
pc-ble-driver = callPackage ../development/libraries/pc-ble-driver {};
pc-ble-driver = callPackage ../development/libraries/pc-ble-driver {
inherit (darwin.apple_sdk.frameworks) IOKit;
};
pbis-open = callPackage ../tools/security/pbis { };