From f24fa1e6f51a072be983b0fa78647c9c777c37b7 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 29 Oct 2020 01:15:31 -0700 Subject: [PATCH] linuxPackages.usbip: disable < 4.10 --- pkgs/os-specific/linux/usbip/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/usbip/default.nix b/pkgs/os-specific/linux/usbip/default.nix index ffd33b6ff85..9a009b74f08 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, 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 @@ -27,5 +27,6 @@ stdenv.mkDerivation { description = "allows to pass USB device from server to client over the network"; license = licenses.gpl2; platforms = platforms.linux; + broken = kernelOlder "4.10"; }; }