depot/third_party/nixpkgs/pkgs/development/libraries/pc-ble-driver/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

40 lines
926 B
Nix

{ lib, stdenv, fetchFromGitHub
, cmake, git
, asio, catch2, spdlog
, IOKit, udev
}:
stdenv.mkDerivation rec {
pname = "pc-ble-driver";
version = "4.1.4";
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-ble-driver";
rev = "v${version}";
sha256 = "1609x17sbfi668jfwyvnfk9z29w6cgzvgv67xcpvpx5jv0czpcdj";
};
cmakeFlags = [
"-DNRF_BLE_DRIVER_VERSION=${version}"
];
nativeBuildInputs = [ cmake git ];
buildInputs = [ asio catch2 spdlog ];
propagatedBuildInputs = [
] ++ lib.optionals stdenv.isDarwin [
IOKit
] ++ lib.optionals stdenv.isLinux [
udev
];
meta = with lib; {
description = "Desktop library for Bluetooth low energy development";
homepage = "https://github.com/NordicSemiconductor/pc-ble-driver";
license = licenses.unfreeRedistributable;
platforms = platforms.unix;
maintainers = with maintainers; [ jschievink ];
};
}