1{ stdenv, fetchurl, pkgconfig, libusb }:
2
3stdenv.mkDerivation rec {
4 name = "usbredir-${version}";
5 version = "0.7.1";
6
7 src = fetchurl {
8 url = "http://spice-space.org/download/usbredir/${name}.tar.bz2";
9 sha256 = "1wsnmk4wjpdhbn1zaxg6bmyxspcki2zgy0am9lk037rnl4krwzj0";
10 };
11
12 # Works around bunch of "format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}'" warnings
13 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isi686 "-Wno-error=format";
14
15 buildInputs = [ pkgconfig libusb ];
16 propagatedBuildInputs = [ libusb ];
17
18 outputs = [ "out" "dev" ];
19
20 meta = with stdenv.lib; {
21 description = "USB traffic redirection protocol";
22 homepage = http://spice-space.org/page/UsbRedir;
23 license = licenses.lgpl21;
24
25 maintainers = [ maintainers.offline ];
26 platforms = platforms.linux;
27 };
28}