From f6dfa221c9a38aa1cf24c47c92ec56acf5cfdae6 Mon Sep 17 00:00:00 2001 From: Moritz U Date: Wed, 22 Nov 2017 23:54:50 +0100 Subject: usbip: init at ${kernel.version} (#31948) * usbip: Init at ${kernel.version} * usbip: simplify build * usbip: fix build on bcachefs kernel * usbip: revert autoreconfHook sorry for breakage, I was testing the wrong code --- pkgs/os-specific/linux/usbip/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkgs/os-specific/linux/usbip/default.nix (limited to 'pkgs/os-specific/linux/usbip/default.nix') diff --git a/pkgs/os-specific/linux/usbip/default.nix b/pkgs/os-specific/linux/usbip/default.nix new file mode 100644 index 00000000000..497b5c19166 --- /dev/null +++ b/pkgs/os-specific/linux/usbip/default.nix @@ -0,0 +1,22 @@ +{ stdenv, kernel, udev, autoconf, automake, libtool }: + +stdenv.mkDerivation rec { + name = "usbip-${kernel.name}"; + + src = kernel.src; + + 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; + }; +} -- cgit 1.4.1