2017-11-22 23:54:50 +01:00
|
|
|
{ stdenv, kernel, udev, autoconf, automake, libtool }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-11-22 23:54:50 +01:00
|
|
|
name = "usbip-${kernel.name}";
|
|
|
|
|
|
|
|
src = kernel.src;
|
|
|
|
|
2019-06-17 11:23:19 +02:00
|
|
|
patches = [
|
|
|
|
# fixes build with gcc8
|
|
|
|
./fix-snprintf-truncation.patch
|
|
|
|
];
|
|
|
|
|
2017-11-22 23:54:50 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
buildInputs = [ udev ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd tools/usb/usbip
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/torvalds/linux/tree/master/tools/usb/usbip;
|
|
|
|
description = "allows to pass USB device from server to client over the network";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|