at 18.09-beta 28 lines 912 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb 2, darwin }: 3 4stdenv.mkDerivation rec { 5 name = "hidapi-0.8.0-rc1"; 6 7 src = fetchFromGitHub { 8 owner = "signal11"; 9 repo = "hidapi"; 10 rev = name; 11 sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 15 buildInputs = [ ] 16 ++ stdenv.lib.optionals stdenv.isLinux [ udev libusb ]; 17 18 propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]); 19 20 meta = with stdenv.lib; { 21 homepage = https://github.com/signal11/hidapi; 22 description = "Library for communicating with USB and Bluetooth HID devices"; 23 # Actually, you can chose between GPLv3, BSD or HIDAPI license (more liberal) 24 license = licenses.bsd3; 25 platforms = platforms.unix; 26 maintainers = with maintainers; [ wkennington ]; 27 }; 28}