2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv }:
|
2019-12-19 13:26:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wooting-udev-rules";
|
2021-08-21 19:51:12 +02:00
|
|
|
version = "20210525";
|
2019-12-19 13:26:45 +01:00
|
|
|
|
|
|
|
# Source: https://wooting.helpscoutdocs.com/article/68-wootility-configuring-device-access-for-wootility-under-linux-udev-rules
|
|
|
|
src = [ ./wooting.rules ];
|
|
|
|
|
2021-07-18 23:42:48 +02:00
|
|
|
dontUnpack = true;
|
2019-12-19 13:26:45 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wooting.helpscoutdocs.com/article/34-linux-udev-rules";
|
2019-12-19 13:26:45 +01:00
|
|
|
description = "udev rules that give NixOS permission to communicate with Wooting keyboards";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = "unknown";
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
|
|
};
|
|
|
|
}
|