1 { lib, stdenv, fetchFromGitHub }:
3 # Although we copy in the udev rules here, you probably just want to use
4 # logitech-udev-rules instead of adding this to services.udev.packages on NixOS
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "sha256-9avri/2H0zv65tkBsIi9yVxx3eVS9oCkVCCFdjXqSgI=";
17 makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ];
20 description = "Tool for working with Logitech Unifying receivers and devices";
22 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`.
24 homepage = "https://lekensteyn.nl/logitech-unifying.html";
25 license = licenses.gpl3Plus;
26 maintainers = with maintainers; [ abbradar ];
27 platforms = platforms.linux;
28 mainProgram = "ltunify";