darwin purity: libusb1

This commit is contained in:
Jude Taylor 2015-06-19 12:56:12 -07:00
parent f048ff3969
commit d3ef216c54
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, udev ? null }:
{ stdenv, fetchurl, pkgconfig, udev ? null, libobjc, IOKit }:
stdenv.mkDerivation rec {
name = "libusb-1.0.19";
@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
};
buildInputs = [ pkgconfig ];
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux udev;
propagatedBuildInputs =
stdenv.lib.optional stdenv.isLinux udev ++
stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";

View File

@ -7210,7 +7210,9 @@ let
libusb = callPackage ../development/libraries/libusb {};
libusb1 = callPackage ../development/libraries/libusb1 { };
libusb1 = callPackage ../development/libraries/libusb1 {
inherit (darwin) libobjc IOKit;
};
libusbmuxd = callPackage ../development/libraries/libusbmuxd { };