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:
parent
1c26e6baec
commit
d6b3707c86
2 changed files with 13 additions and 3 deletions
|
@ -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";
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue