Merge pull request #24761 from matthewbauer/hidapi2

hidapi: fix macos
This commit is contained in:
Daiderd Jordan 2017-04-09 22:39:15 +02:00 committed by GitHub
commit 35eb784bf2

View File

@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb }:
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, libusb
, darwin }:
stdenv.mkDerivation rec {
name = "hidapi-0.8.0-rc1";
@ -10,7 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "13d5jkmh9nh4c2kjch8k8amslnxapa9vkqzrk1z6rqmw8qgvzbkj";
};
buildInputs = [ autoreconfHook pkgconfig udev libusb ];
buildInputs = [ autoreconfHook pkgconfig ]
++ stdenv.lib.optionals stdenv.isLinux [ udev libusb ];
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit Cocoa ]);
meta = with stdenv.lib; {
homepage = https://github.com/signal11/hidapi;