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;
|
|
|
|
|
2016-08-02 18:06:29 +02:00
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2006-01-05 00:29:09 +01:00
|
|
|
}
|