2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, solaar }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# ltunifi and solaar both provide udev rules but solaar's rules are more
|
|
|
|
# up-to-date so we simply use that instead of having to maintain our own rules
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "logitech-udev-rules";
|
|
|
|
inherit (solaar) version;
|
|
|
|
|
|
|
|
buildCommand = ''
|
2021-05-20 23:08:51 +00:00
|
|
|
install -Dm444 -t $out/etc/udev/rules.d ${solaar.src}/rules.d/*.rules
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "udev rules for Logitech devices";
|
|
|
|
inherit (solaar.meta) homepage license platforms;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|