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