1 { lib, stdenv, kernel, udev, autoconf, automake, libtool, hwdata, kernelOlder }:
4 name = "usbip-${kernel.name}";
8 patches = lib.optionals (kernelOlder "5.4") [
9 # fixes build with gcc8
10 ./fix-snprintf-truncation.patch
11 # fixes build with gcc9
12 ./fix-strncpy-truncation.patch
15 nativeBuildInputs = [ autoconf automake libtool ];
16 buildInputs = [ udev ];
18 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=address-of-packed-member" ];
25 configureFlags = [ "--with-usbids-dir=${hwdata}/share/hwdata/" ];
28 homepage = "https://github.com/torvalds/linux/tree/master/tools/usb/usbip";
29 description = "allows to pass USB device from server to client over the network";
30 license = with licenses; [ gpl2Only gpl2Plus ];
31 platforms = platforms.linux;
32 broken = kernelOlder "4.10";