nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, lib, fetchFromGitHub, cmake, CoreServices }:
2
3stdenv.mkDerivation rec {
4 pname = "libbtbb";
5 version = "2020-12-R1";
6
7 src = fetchFromGitHub {
8 owner = "greatscottgadgets";
9 repo = pname;
10 rev = version;
11 sha256 = "1byv8174xam7siakr1p0523x97wkh0fmwmq341sd3g70qr2g767d";
12 };
13
14 nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];
15
16 meta = with lib; {
17 description = "Bluetooth baseband decoding library";
18 homepage = "https://github.com/greatscottgadgets/libbtbb";
19 license = licenses.gpl2;
20 maintainers = with maintainers; [ oxzi ];
21 };
22}