3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/pc-ble-driver/default.nix
Jonas Schievink e1a1b974ed pc-ble-driver: init at 4.1.1
It's a dependency of pc-ble-driver-py, but it's no longer built
alongside it.
2020-07-13 23:25:26 +02:00

29 lines
777 B
Nix

{ stdenv, fetchFromGitHub, git, cmake, catch2, asio, udev }:
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 udev ];
meta = with stdenv.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 ];
};
}