2014-11-11 14:46:47 +00:00
|
|
|
{stdenv, fetchurl, pkgconfig, libusb1}:
|
2006-01-04 23:29:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-11-11 14:46:47 +00:00
|
|
|
name = "libusb-compat-0.1.5";
|
2010-03-06 22:34:21 +00:00
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
|
2015-04-18 23:48:52 +01:00
|
|
|
outputBin = "dev";
|
|
|
|
|
2014-11-14 17:08:53 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ libusb1 ];
|
2010-03-06 22:34:21 +00:00
|
|
|
|
2006-01-04 23:29:09 +00:00
|
|
|
src = fetchurl {
|
2014-11-11 14:46:47 +00:00
|
|
|
url = mirror://sourceforge/libusb/libusb-compat-0.1.5.tar.bz2;
|
|
|
|
sha256 = "0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0";
|
2006-01-04 23:29:09 +00:00
|
|
|
};
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2017-10-04 00:04:30 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch;
|
|
|
|
|
2018-10-11 13:30:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://libusb.info/";
|
|
|
|
repositories.git = "https://github.com/libusb/libusb-compat-0.1";
|
|
|
|
description = "cross-platform user-mode USB device library";
|
|
|
|
longDescription = ''
|
|
|
|
libusb is a cross-platform user-mode library that provides access to USB devices.
|
|
|
|
The current API is of 1.0 version (libusb-1.0 API), this library is a wrapper exposing the legacy API.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2006-01-04 23:29:09 +00:00
|
|
|
}
|