1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb }:
2
3stdenv.mkDerivation rec {
4 name = "hidapi-0.8.0-rc1";
5
6 src = fetchFromGitHub {
7 owner = "signal11";
8 repo = "hidapi";
9 rev = name;
10 sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
11 };
12
13 buildInputs = [ autoreconfHook pkgconfig udev libusb ];
14
15 meta = with stdenv.lib; {
16 homepage = https://github.com/signal11/hidapi;
17 description = "Library for communicating with USB and Bluetooth HID devices";
18 # Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal)
19 license = licenses.bsd3;
20 platforms = platforms.unix;
21 maintainers = with maintainers; [ wkennington ];
22 };
23}