about summary refs log tree commit diff
path: root/pkgs/tools/misc/ltunify/default.nix
blob: b85e3da4a5c0d0aaae382d7eef392c4fbebdcf84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchFromGitHub }:

# Although we copy in the udev rules here, you probably just want to use
# logitech-udev-rules instead of adding this to services.udev.packages on NixOS

stdenv.mkDerivation rec {
  pname = "ltunify";
  version = "0.3";

  src = fetchFromGitHub {
    owner = "Lekensteyn";
    repo = "ltunify";
    rev = "v${version}";
    sha256 = "sha256-9avri/2H0zv65tkBsIi9yVxx3eVS9oCkVCCFdjXqSgI=";
  };

  makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ];

  meta = with lib; {
    description = "Tool for working with Logitech Unifying receivers and devices";
    longDescription = ''
      This tool requires either to be run with root/sudo or alternatively to have the udev rules files installed. On NixOS this can be achieved by setting `hardware.logitech.wireless.enable`.
    '';
    homepage = "https://lekensteyn.nl/logitech-unifying.html";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ abbradar ];
    platforms = platforms.linux;
    mainProgram = "ltunify";
  };
}