2017-03-13 21:23:41 +03:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb
|
|
|
|
, darwin }:
|
2014-10-25 03:35:01 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hidapi-0.8.0-rc1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "signal11";
|
|
|
|
repo = "hidapi";
|
|
|
|
rev = name;
|
|
|
|
sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
|
|
|
|
};
|
|
|
|
|
2017-03-13 21:23:41 +03:00
|
|
|
buildInputs = [ autoreconfHook pkgconfig ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isLinux [ udev libusb ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
|
2014-10-25 03:35:01 +04:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/signal11/hidapi;
|
2014-12-07 18:14:07 +03:00
|
|
|
description = "Library for communicating with USB and Bluetooth HID devices";
|
2014-12-07 18:15:52 +03:00
|
|
|
# Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal)
|
2014-10-25 03:35:01 +04:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|