depot/third_party/nixpkgs/pkgs/development/libraries/pc-ble-driver/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

36 lines
908 B
Nix

{ lib, stdenv, fetchFromGitHub, git, cmake, catch2, asio, udev, IOKit }:
stdenv.mkDerivation rec {
pname = "pc-ble-driver";
version = "4.1.1";
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-ble-driver";
rev = "v${version}";
sha256 = "1llhkpbdbsq9d91m873vc96bprkgpb5wsm5fgs1qhzdikdhg077q";
};
cmakeFlags = [
"-DNRF_BLE_DRIVER_VERSION=${version}"
];
nativeBuildInputs = [ cmake git ];
buildInputs = [ catch2 asio ];
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 ];
};
}