summary refs log blame commit diff
path: root/pkgs/os-specific/linux/logitech-udev-rules/default.nix
blob: c215d9401940309c96c0dd4ad545bf2d7a00c3e8 (plain) (tree)


















                                                                              
{ 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 rec {
  name = "logitech-udev-rules-${version}";
  inherit (solaar) version;

  buildCommand = ''
    install -Dm644 -t $out/etc/udev/rules.d ${solaar.src}/rules.d/*.rules
  '';

  meta = with stdenv.lib; {
    description = "udev rules for Logitech devices";
    inherit (solaar.meta) homepage license platforms;
    maintainers = with maintainers; [ peterhoeg ];
  };
}