lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #87750 from oxzi/ubertooth

authored by

Martin Weinelt and committed by
GitHub
54d28636 2f368c20

+90
+29
nixos/modules/hardware/ubertooth.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.hardware.ubertooth; 7 + 8 + ubertoothPkg = pkgs.ubertooth.override { 9 + udevGroup = cfg.group; 10 + }; 11 + in { 12 + options.hardware.ubertooth = { 13 + enable = mkEnableOption "Enable the Ubertooth software and its udev rules."; 14 + 15 + group = mkOption { 16 + type = types.str; 17 + default = "ubertooth"; 18 + example = "wheel"; 19 + description = "Group for Ubertooth's udev rules."; 20 + }; 21 + }; 22 + 23 + config = mkIf cfg.enable { 24 + environment.systemPackages = [ ubertoothPkg ]; 25 + 26 + services.udev.packages = [ ubertoothPkg ]; 27 + users.groups.${cfg.group} = {}; 28 + }; 29 + }
+1
nixos/modules/module-list.nix
··· 67 67 ./hardware/steam-hardware.nix 68 68 ./hardware/system-76.nix 69 69 ./hardware/tuxedo-keyboard.nix 70 + ./hardware/ubertooth.nix 70 71 ./hardware/usb-wwan.nix 71 72 ./hardware/onlykey.nix 72 73 ./hardware/opentabletdriver.nix
+34
pkgs/applications/radio/ubertooth/default.nix
··· 1 + { stdenv, lib, fetchFromGitHub, cmake, pkgconfig, libbtbb, libpcap , libusb1, bluez 2 + , udevGroup ? "ubertooth" 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + pname = "ubertooth"; 7 + version = "2020-12-R1"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "greatscottgadgets"; 11 + repo = pname; 12 + rev = version; 13 + sha256 = "11r5ag2l5xn4pr7ycicm30w9c3ldn9yiqj1sqnjc79csxl2vrcfw"; 14 + }; 15 + 16 + sourceRoot = "source/host"; 17 + 18 + nativeBuildInputs = [ cmake pkgconfig ]; 19 + buildInputs = [ libbtbb libpcap libusb1 bluez ]; 20 + 21 + cmakeFlags = lib.optionals stdenv.isLinux [ 22 + "-DINSTALL_UDEV_RULES=TRUE" 23 + "-DUDEV_RULES_PATH=etc/udev/rules.d" 24 + "-DUDEV_RULES_GROUP=${udevGroup}" 25 + ]; 26 + 27 + meta = with stdenv.lib; { 28 + description = "Open source wireless development platform suitable for Bluetooth experimentation"; 29 + homepage = "https://github.com/greatscottgadgets/ubertooth"; 30 + license = licenses.gpl2; 31 + maintainers = with maintainers; [ oxzi ]; 32 + platforms = platforms.linux; 33 + }; 34 + }
+22
pkgs/development/libraries/libbtbb/default.nix
··· 1 + { stdenv, fetchFromGitHub, cmake }: 2 + 3 + stdenv.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 ]; 15 + 16 + meta = with stdenv.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 + }
+4
pkgs/top-level/all-packages.nix
··· 4422 4422 4423 4423 libbladeRF = callPackage ../development/libraries/libbladeRF { }; 4424 4424 4425 + libbtbb = callPackage ../development/libraries/libbtbb { }; 4426 + 4425 4427 lp_solve = callPackage ../applications/science/math/lp_solve { }; 4426 4428 4427 4429 fastlane = callPackage ../tools/admin/fastlane { }; ··· 8851 8853 ubidump = python3Packages.callPackage ../tools/filesystems/ubidump { }; 8852 8854 8853 8855 ubridge = callPackage ../tools/networking/ubridge { }; 8856 + 8857 + ubertooth = callPackage ../applications/radio/ubertooth { }; 8854 8858 8855 8859 ucl = callPackage ../development/libraries/ucl { }; 8856 8860