diff --git a/pkgs/by-name/ba/bazecor/10-dygma.rules b/pkgs/by-name/ba/bazecor/10-dygma.rules deleted file mode 100644 index 6805e68c0644..000000000000 --- a/pkgs/by-name/ba/bazecor/10-dygma.rules +++ /dev/null @@ -1,4 +0,0 @@ -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2201", MODE="0666" -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2200", MODE="0666" -SUBSYSTEMS=="usb", ATTRS{idVendor}=="35ef", MODE="0666" -KERNEL=="hidraw*", ATTRS{idVendor}=="35ef", MODE="0666" diff --git a/pkgs/by-name/ba/bazecor/60-dygma.rules b/pkgs/by-name/ba/bazecor/60-dygma.rules new file mode 100644 index 000000000000..64ae68aac5ce --- /dev/null +++ b/pkgs/by-name/ba/bazecor/60-dygma.rules @@ -0,0 +1,14 @@ +# Dygma Raise +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2200", MODE="0660", TAG+="uaccess" +# bootloader mode +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2201", MODE="0660", TAG+="uaccess" + +# Dygma USB Keyboards Vendor ID +SUBSYSTEMS=="usb", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess" +# bootloader mode +SUBSYSTEMS=="usb", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess" + +# Dygma HID Keyboards Vendor ID +KERNEL=="hidraw*", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess" +# bootloader mode +KERNEL=="hidraw*", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess" diff --git a/pkgs/by-name/ba/bazecor/package.nix b/pkgs/by-name/ba/bazecor/package.nix index dc74c867c64f..0d587882099f 100644 --- a/pkgs/by-name/ba/bazecor/package.nix +++ b/pkgs/by-name/ba/bazecor/package.nix @@ -6,12 +6,12 @@ }: let pname = "bazecor"; - version = "1.4.2"; + version = "1.4.4"; src = appimageTools.extract { inherit pname version; src = fetchurl { url = "https://github.com/Dygmalab/Bazecor/releases/download/v${version}/Bazecor-${version}-x64.AppImage"; - hash = "sha256-2/GX2p+YhN6XLXl8ORn5Vy5GYjPS1ZkKmSymeUjExLU="; + hash = "sha256-ep+3lqWdktyvbTKxfLcPiVq9/5f0xBHwKG1+BxDDBQA="; }; # Workaround for https://github.com/Dygmalab/Bazecor/issues/370 @@ -27,9 +27,9 @@ in appimageTools.wrapAppImage { inherit pname version src; - # also make sure to update the udev rules in ./10-dygma.rules; most recently + # also make sure to update the udev rules in ./60-dygma.rules; most recently # taken from - # https://github.com/Dygmalab/Bazecor/blob/v1.3.11/src/main/utils/udev.ts#L6 + # https://github.com/Dygmalab/Bazecor/blob/v1.4.4/src/main/utils/udev.ts#L6 extraPkgs = pkgs: [ pkgs.glib ]; @@ -46,7 +46,7 @@ appimageTools.wrapAppImage { install -m 444 -D ${src}/bazecor.png -t $out/share/pixmaps mkdir -p $out/lib/udev/rules.d - install -m 444 -D ${./10-dygma.rules} $out/lib/udev/rules.d/10-dygma.rules + install -m 444 -D ${./60-dygma.rules} $out/lib/udev/rules.d/60-dygma.rules substituteInPlace $out/share/applications/Bazecor.desktop \ --replace-fail 'Exec=Bazecor' 'Exec=bazecor'