Merge pull request #93487 from siriobalmelli-foss/add/pc-ble-driver
pc-ble-driver: fix Darwin build
This commit is contained in:
commit
e3cba5aad9
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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pc-ble-driver";
|
pname = "pc-ble-driver";
|
||||||
|
@ -16,7 +16,15 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake git ];
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Desktop library for Bluetooth low energy development";
|
description = "Desktop library for Bluetooth low energy development";
|
||||||
|
|
|
@ -21433,7 +21433,9 @@ in
|
||||||
|
|
||||||
partio = callPackage ../development/libraries/partio {};
|
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 { };
|
pbis-open = callPackage ../tools/security/pbis { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue