lol
at 24.11-pre 30 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub }: 2 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 5 6stdenv.mkDerivation rec { 7 pname = "ltunify"; 8 version = "0.3"; 9 10 src = fetchFromGitHub { 11 owner = "Lekensteyn"; 12 repo = "ltunify"; 13 rev = "v${version}"; 14 sha256 = "sha256-9avri/2H0zv65tkBsIi9yVxx3eVS9oCkVCCFdjXqSgI="; 15 }; 16 17 makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ]; 18 19 meta = with lib; { 20 description = "Tool for working with Logitech Unifying receivers and devices"; 21 longDescription = '' 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`. 23 ''; 24 homepage = "https://lekensteyn.nl/logitech-unifying.html"; 25 license = licenses.gpl3Plus; 26 maintainers = with maintainers; [ abbradar ]; 27 platforms = platforms.linux; 28 mainProgram = "ltunify"; 29 }; 30}