Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 udevCheckHook,
6}:
7
8# Although we copy in the udev rules here, you probably just want to use
9# logitech-udev-rules instead of adding this to services.udev.packages on NixOS
10
11stdenv.mkDerivation rec {
12 pname = "ltunify";
13 version = "0.3";
14
15 src = fetchFromGitHub {
16 owner = "Lekensteyn";
17 repo = "ltunify";
18 rev = "v${version}";
19 sha256 = "sha256-9avri/2H0zv65tkBsIi9yVxx3eVS9oCkVCCFdjXqSgI=";
20 };
21
22 nativeBuildInputs = [
23 udevCheckHook
24 ];
25
26 doInstallCheck = true;
27
28 makeFlags = [
29 "DESTDIR=$(out)"
30 "bindir=/bin"
31 ];
32
33 meta = with lib; {
34 description = "Tool for working with Logitech Unifying receivers and devices";
35 longDescription = ''
36 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`.
37 '';
38 homepage = "https://lekensteyn.nl/logitech-unifying.html";
39 license = licenses.gpl3Plus;
40 maintainers = with maintainers; [ abbradar ];
41 platforms = platforms.linux;
42 mainProgram = "ltunify";
43 };
44}