darwin purity: libusb1
This commit is contained in:
parent
f048ff3969
commit
d3ef216c54
@ -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";
|
||||
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user