summary refs log tree commit diff
path: root/pkgs/os-specific/linux/logitech-udev-rules/default.nix
blob: 369f412fbfc5211f463a4917b0919c2dd46d79ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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 stdenv.lib; {
    description = "udev rules for Logitech devices";
    inherit (solaar.meta) homepage license platforms;
    maintainers = with maintainers; [ peterhoeg ];
  };
}