3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/ubertooth/default.nix

35 lines
960 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, libbtbb, libpcap , libusb1, bluez
, udevGroup ? "ubertooth"
}:
2020-05-13 17:00:08 +01:00
stdenv.mkDerivation rec {
pname = "ubertooth";
2021-01-08 10:27:48 +00:00
version = "2020-12-R1";
2020-05-13 17:00:08 +01:00
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = pname;
rev = version;
2021-01-08 10:27:48 +00:00
sha256 = "11r5ag2l5xn4pr7ycicm30w9c3ldn9yiqj1sqnjc79csxl2vrcfw";
2020-05-13 17:00:08 +01:00
};
sourceRoot = "source/host";
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libbtbb libpcap libusb1 bluez ];
cmakeFlags = lib.optionals stdenv.isLinux [
"-DINSTALL_UDEV_RULES=TRUE"
"-DUDEV_RULES_PATH=etc/udev/rules.d"
"-DUDEV_RULES_GROUP=${udevGroup}"
2020-05-13 17:00:08 +01:00
];
meta = with stdenv.lib; {
description = "Open source wireless development platform suitable for Bluetooth experimentation";
homepage = "https://github.com/greatscottgadgets/ubertooth";
license = licenses.gpl2;
maintainers = with maintainers; [ oxzi ];
platforms = platforms.linux;
};
}