2014-11-11 15:46:47 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, libusb1}:
|
2006-01-05 00:29:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-11-11 15:46:47 +01:00
|
|
|
name = "libusb-compat-0.1.5";
|
2010-03-06 23:34:21 +01:00
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
|
2015-04-19 00:48:52 +02:00
|
|
|
outputBin = "dev";
|
|
|
|
|
2014-11-14 18:08:53 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ libusb1 ];
|
2010-03-06 23:34:21 +01:00
|
|
|
|
2006-01-05 00:29:09 +01:00
|
|
|
src = fetchurl {
|
2014-11-11 15:46:47 +01:00
|
|
|
url = mirror://sourceforge/libusb/libusb-compat-0.1.5.tar.bz2;
|
|
|
|
sha256 = "0nn5icrfm9lkhzw1xjvaks9bq3w6mjg86ggv3fn7kgi4nfvg8kj0";
|
2006-01-05 00:29:09 +01:00
|
|
|
};
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2017-10-04 01:04:30 +02:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch;
|
|
|
|
|
2018-10-11 14:30:10 +02: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 18:06:29 +02:00
|
|
|
};
|
2006-01-05 00:29:09 +01:00
|
|
|
}
|