nixpkgs/pkgs/os-specific/linux/usbip/default.nix
Frederik Rietdijk 5f4734b1dd Merge remote-tracking branch 'upstream/gcc-8' into staging-next
Earlier the gcc8 branch was merged instead of the gcc-8 branch (note the dash)...
2019-09-08 20:44:26 +02:00

28 lines
625 B
Nix

{ stdenv, kernel, udev, autoconf, automake, libtool }:
stdenv.mkDerivation {
name = "usbip-${kernel.name}";
src = kernel.src;
patches = [
# fixes build with gcc8
./fix-snprintf-truncation.patch
];
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;
};
}