depot/third_party/nixpkgs/pkgs/os-specific/linux/logitech-udev-rules/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

19 lines
550 B
Nix

{ lib, stdenv, solaar }:
# 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 = ''
install -Dm644 -t $out/etc/udev/rules.d ${solaar.src}/rules.d/*.rules
'';
meta = with lib; {
description = "udev rules for Logitech devices";
inherit (solaar.meta) homepage license platforms;
maintainers = with maintainers; [ peterhoeg ];
};
}