nixpkgs/pkgs/tools/misc/ltunify/default.nix

30 lines
995 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2019-03-11 05:07:58 +00:00
2021-05-10 09:15:14 +01:00
# 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
2016-01-11 02:21:24 +00:00
2021-05-10 09:15:14 +01:00
stdenv.mkDerivation rec {
pname = "ltunify";
2021-05-10 09:15:14 +01:00
version = "0.3";
2016-01-11 02:21:24 +00:00
2019-03-11 05:07:58 +00:00
src = fetchFromGitHub {
2021-05-10 09:15:14 +01:00
owner = "Lekensteyn";
repo = "ltunify";
rev = "v${version}";
sha256 = "sha256-9avri/2H0zv65tkBsIi9yVxx3eVS9oCkVCCFdjXqSgI=";
2016-01-11 02:21:24 +00:00
};
makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ];
meta = with lib; {
2016-01-11 02:21:24 +00:00
description = "Tool for working with Logitech Unifying receivers and devices";
2021-05-10 09:15:14 +01:00
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";
2016-01-11 02:21:24 +00:00
license = licenses.gpl3Plus;
2019-03-11 05:07:58 +00:00
maintainers = with maintainers; [ abbradar ];
2016-01-11 02:21:24 +00:00
platforms = platforms.linux;
};
}