Merge pull request #93487 from siriobalmelli-foss/add/pc-ble-driver

pc-ble-driver: fix Darwin build
This commit is contained in:
Sarah Brofeldt 2020-07-20 19:41:37 +02:00 committed by GitHub
commit e3cba5aad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -21433,7 +21433,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 { };