Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/hardware/ubertooth: init at 2018-12-R1

+34 -2
+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
··· 64 ./hardware/steam-hardware.nix 65 ./hardware/system-76.nix 66 ./hardware/tuxedo-keyboard.nix 67 ./hardware/usb-wwan.nix 68 ./hardware/onlykey.nix 69 ./hardware/opentabletdriver.nix
··· 64 ./hardware/steam-hardware.nix 65 ./hardware/system-76.nix 66 ./hardware/tuxedo-keyboard.nix 67 + ./hardware/ubertooth.nix 68 ./hardware/usb-wwan.nix 69 ./hardware/onlykey.nix 70 ./hardware/opentabletdriver.nix
+4 -2
pkgs/applications/radio/ubertooth/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, pkgconfig, libbtbb, libpcap , libusb1, bluez }: 2 3 stdenv.mkDerivation rec { 4 pname = "ubertooth"; ··· 19 cmakeFlags = lib.optionals stdenv.isLinux [ 20 "-DINSTALL_UDEV_RULES=TRUE" 21 "-DUDEV_RULES_PATH=etc/udev/rules.d" 22 - "-DUDEV_RULES_GROUP=ubertooth" 23 ]; 24 25 meta = with stdenv.lib; {
··· 1 + { stdenv, lib, fetchFromGitHub, cmake, pkgconfig, libbtbb, libpcap , libusb1, bluez 2 + , udevGroup ? "ubertooth" 3 + }: 4 5 stdenv.mkDerivation rec { 6 pname = "ubertooth"; ··· 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; {