summary refs log blame commit diff
path: root/pkgs/os-specific/linux/logitech-udev-rules/default.nix
blob: 0b0e9e8f203d3409c3db62513c7fa04785857773 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                        



                                                                              
                     
                                


                           
                                                                         

     
                    




                                                     
{ 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 -Dm444 -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 ];
  };
}