1{ stdenv, kernel, udev, autoconf, automake, libtool }:
2
3stdenv.mkDerivation rec {
4 name = "usbip-${kernel.name}";
5
6 src = kernel.src;
7
8 nativeBuildInputs = [ autoconf automake libtool ];
9 buildInputs = [ udev ];
10
11 preConfigure = ''
12 cd tools/usb/usbip
13 ./autogen.sh
14 '';
15
16 meta = with stdenv.lib; {
17 homepage = https://github.com/torvalds/linux/tree/master/tools/usb/usbip;
18 description = "allows to pass USB device from server to client over the network";
19 license = licenses.gpl2;
20 platforms = platforms.linux;
21 };
22}