diff options
Diffstat (limited to 'pkgs/os-specific/linux/usbip/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/usbip/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/usbip/default.nix b/pkgs/os-specific/linux/usbip/default.nix index ffd33b6ff85..43c22a8fd12 100644 --- a/pkgs/os-specific/linux/usbip/default.nix +++ b/pkgs/os-specific/linux/usbip/default.nix @@ -1,11 +1,11 @@ -{ lib, stdenv, kernel, udev, autoconf, automake, libtool }: +{ lib, stdenv, kernel, udev, autoconf, automake, libtool, hwdata, kernelOlder }: stdenv.mkDerivation { name = "usbip-${kernel.name}"; src = kernel.src; - patches = lib.optionals (lib.versionAtLeast "5.4" kernel.version) [ + patches = lib.optionals (kernelOlder "5.4") [ # fixes build with gcc8 ./fix-snprintf-truncation.patch # fixes build with gcc9 @@ -22,10 +22,13 @@ stdenv.mkDerivation { ./autogen.sh ''; - meta = with stdenv.lib; { + configureFlags = [ "--with-usbids-dir=${hwdata}/share/hwdata/" ]; + + meta = with 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; + license = with licenses; [ gpl2Only gpl2Plus ]; platforms = platforms.linux; + broken = kernelOlder "4.10"; }; } |