uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/development/libraries/pc-ble-driver/default.nix
Normal file
40
pkgs/development/libraries/pc-ble-driver/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue