2018-10-14 21:18:17 +00:00
|
|
|
{stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libusb1}:
|
2006-01-04 23:29:09 +00:00
|
|
|
|
2018-10-14 19:51:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libusb-compat-${version}";
|
|
|
|
version = "0.1.7";
|
2010-03-06 22:34:21 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ]; # get rid of propagating systemd closure
|
2015-04-18 22:48:52 +00:00
|
|
|
outputBin = "dev";
|
|
|
|
|
2018-10-14 21:18:17 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
2014-11-14 17:08:53 +00:00
|
|
|
propagatedBuildInputs = [ libusb1 ];
|
2010-03-06 22:34:21 +00:00
|
|
|
|
2018-10-14 21:18:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libusb";
|
|
|
|
repo = "libusb-compat-0.1";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1nybccgjs14b3phhaycq2jx1gym4nf6sghvnv9qdfmlqxacx0jz5";
|
2006-01-04 23:29:09 +00:00
|
|
|
};
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2017-10-03 23:04:30 +00:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./fix-headers.patch;
|
|
|
|
|
2018-10-11 12:30:10 +00: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 16:06:29 +00:00
|
|
|
};
|
2006-01-04 23:29:09 +00:00
|
|
|
}
|