mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
d6d5ddb9b6
Upstream did changes on the udev rules to fix training in chrome/chromium. With the current stable release the keyboard is not picked up for training. If there is later on a stable release after this date, its safe to udate to that version.
33 lines
864 B
Nix
33 lines
864 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zsa-udev-rules";
|
|
version = "unstable-2022-10-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zsa";
|
|
repo = "wally";
|
|
rev = "623a50d0e0b90486e42ad8ad42b0a7313f7a37b3";
|
|
hash = "sha256-meR2V7T4hrJFXFPLENHoAgmOILxxynDBk0BLqzsAZvQ=";
|
|
};
|
|
|
|
# Only copies udevs rules
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
dontFixup = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/udev/rules.d
|
|
cp dist/linux64/50-oryx.rules $out/lib/udev/rules.d/
|
|
cp dist/linux64/50-wally.rules $out/lib/udev/rules.d/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "udev rules for ZSA devices";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ davidak ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://github.com/zsa/wally/wiki/Linux-install#2-create-a-udev-rule-file";
|
|
};
|
|
}
|