diff options
author | Alvar Penning <post@0x21.biz> | 2020-05-13 18:00:08 +0200 |
---|---|---|
committer | Alvar Penning <post@0x21.biz> | 2021-01-08 11:15:29 +0100 |
commit | 623c10ac79fd8cca12d40f182bd1aed87388035d (patch) | |
tree | 511c3a5abad08517e910b8c7ead95205d850041e | |
parent | 0458e69021f1964e786f01eb77e5727d99127788 (diff) |
ubertooth: init at 2018-12-R1
-rw-r--r-- | pkgs/applications/radio/ubertooth/default.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/radio/ubertooth/default.nix b/pkgs/applications/radio/ubertooth/default.nix new file mode 100644 index 000000000000..f9626ea4c363 --- /dev/null +++ b/pkgs/applications/radio/ubertooth/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, libbtbb, libpcap , libusb1, bluez }: + +stdenv.mkDerivation rec { + pname = "ubertooth"; + version = "2018-12-R1"; + + src = fetchFromGitHub { + owner = "greatscottgadgets"; + repo = pname; + rev = version; + sha256 = "1da5fsjwc5szclq6h5wznvgwikd1qqv8gbmv38h0fpc12lwn85c4"; + }; + + 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=ubertooth" + ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1a682c5d0f64..adb020d948b8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8092,6 +8092,8 @@ in ubridge = callPackage ../tools/networking/ubridge { }; + ubertooth = callPackage ../applications/radio/ubertooth { }; + ucl = callPackage ../development/libraries/ucl { }; ucspi-tcp = callPackage ../tools/networking/ucspi-tcp { }; |